diff options
| author | Eran Mizrahi <erasmux@gmail.com> | 2017-12-13 16:09:39 +0200 |
|---|---|---|
| committer | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2017-12-13 16:53:20 -0600 |
| commit | 2c28107ae8976d0b9c50f3477f4b563daa1617fd (patch) | |
| tree | 7989c6da6d3798424032e65a81cf5b5823474e29 /src | |
| parent | da35cd3ea0e819d88b4df60f7738637cac227ecd (diff) | |
fix waitForProcessCompletion bug
Diffstat (limited to 'src')
| -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;
|
