summaryrefslogtreecommitdiff
path: root/src/spawn.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-09-08 12:32:45 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-09-08 12:32:45 +0200
commit33e11e20566cbbbbf49a064d0fac9f626a410f9a (patch)
tree77df127431828ad4132d3876ff07cfd58c27e05f /src/spawn.cpp
parent67fb7e56d3a080844927d4d41764da1e9bb39795 (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.
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r--src/spawn.cpp3
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