diff options
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 2 |
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;
|
