summaryrefslogtreecommitdiff
path: root/source/api_wrappers/windows/WinApiWrappers.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/api_wrappers/windows/WinApiWrappers.h')
-rw-r--r--source/api_wrappers/windows/WinApiWrappers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/api_wrappers/windows/WinApiWrappers.h b/source/api_wrappers/windows/WinApiWrappers.h
index 65fca8b..f3fbfa1 100644
--- a/source/api_wrappers/windows/WinApiWrappers.h
+++ b/source/api_wrappers/windows/WinApiWrappers.h
@@ -240,13 +240,16 @@ public:
switch (::WaitForMultipleObjects(2, m_Handles, FALSE, mSecTimeout)) {
case WAIT_OBJECT_0 + 0:
return REMOVE_CANCEL;
+
case WAIT_OBJECT_0 + 1: {
CLockCS LocalCSLock(m_CSLock);
*ppObject = RemoveFromQueueHead(); // Remove pObject from pObjectQueue head
return REMOVE_SUCCESS;
}
+
case WAIT_TIMEOUT:
return REMOVE_TIMEOUT;
+
default:
assert(false);
return REMOVE_CANCEL;