summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEran Mizrahi <erasmux@gmail.com>2017-12-13 16:09:39 +0200
committerEran Mizrahi <erasmux@gmail.com>2017-12-13 22:27:11 +0200
commit184b6d3907586d2d4425bba29dd3e14cae9ecbf3 (patch)
tree7989c6da6d3798424032e65a81cf5b5823474e29 /src
parent4d54b962aaa13e6f78f2c89dcc9f03f9fadac35c (diff)
fix waitForProcessCompletion bug
Diffstat (limited to 'src')
-rw-r--r--src/organizercore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index deb0b718..5601afa7 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1357,7 +1357,7 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode, IL
if (res == WAIT_OBJECT_0) {
// process we were waiting on has completed
- if (originalHandle && !::GetExitCodeProcess(handle, exitCode))
+ if (originalHandle && exitCode && !::GetExitCodeProcess(handle, exitCode))
qWarning() << "Failed getting exit code of complete process :" << GetLastError();
CloseHandle(handle);
handle = INVALID_HANDLE_VALUE;