From 33e11e20566cbbbbf49a064d0fac9f626a410f9a Mon Sep 17 00:00:00 2001 From: Al12rs Date: Sat, 8 Sep 2018 12:32:45 +0200 Subject: Added debug line to check actual processed parameters passed to CreateProcessHooked() to see if we can discover somethig more on Parameter is incorrect error. --- src/spawn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spawn.cpp b/src/spawn.cpp index ac8ccf30..f92387d5 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -29,6 +29,8 @@ along with Mod Organizer. If not, see . #include #include +#include + #include @@ -91,6 +93,7 @@ static bool spawn(LPCWSTR binary, LPCWSTR arguments, LPCWSTR currentDirectory, PROCESS_INFORMATION pi; BOOL success = FALSE; if (hooked) { + qDebug() << "Creating process hooked: <" << QString::fromWCharArray(commandLine, length) <<">"; success = ::CreateProcessHooked(nullptr, commandLine, nullptr, nullptr, // no special process or thread attributes -- cgit v1.3.1