diff options
-rw-r--r-- | src/mir_core/src/threads.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_core/src/threads.cpp b/src/mir_core/src/threads.cpp index de9474a101..0b564ecbd3 100644 --- a/src/mir_core/src/threads.cpp +++ b/src/mir_core/src/threads.cpp @@ -252,7 +252,8 @@ MIR_CORE_DLL(void) KillObjectThreads(void* owner) DWORD dwTicks = GetTickCount() + 6000;
HANDLE hThread = mir_forkthread(KillObjectThreadsWorker, owner);
while (GetTickCount() < dwTicks) {
- if (WAIT_OBJECT_0 == MsgWaitForMultipleObjectsEx(1, &hThread, 50, QS_ALLPOSTMESSAGE | QS_ALLINPUT, MWMO_ALERTABLE))
+ int res = MsgWaitForMultipleObjectsEx(1, &hThread, 50, QS_ALLPOSTMESSAGE | QS_ALLINPUT, MWMO_ALERTABLE);
+ if (res == WAIT_OBJECT_0 || res == WAIT_FAILED)
break;
MSG msg;
|