diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-08 12:32:45 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-08 12:32:45 +0200 |
| commit | 33e11e20566cbbbbf49a064d0fac9f626a410f9a (patch) | |
| tree | 77df127431828ad4132d3876ff07cfd58c27e05f | |
| parent | 67fb7e56d3a080844927d4d41764da1e9bb39795 (diff) | |
Added debug line to check actual processed parameters passed to CreateProcessHooked() to see if we can discover somethig more on Parameter is incorrect error.
| -rw-r--r-- | src/spawn.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. #include <QApplication>
#include <QMessageBox>
+#include <QtDebug>
+
#include <Shellapi.h>
@@ -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
|
