[host] windows: log MsgWaitForMultipleObjects errors
This function is sometimes flaky and may fail for no apparent reason, see https://stackoverflow.com/q/3945003. This has also been experienced during the development of #610. This commit adds logging so we may see if it ever fails for no reason and work out some way to fix it.
This commit is contained in:
1 parent
1a88996c47
commit
b1c26aaa95
2 files changed
+2
No files matched your search
@@ -106,6 +106,7 @@ static DWORD WINAPI threadProc(LPVOID lParam)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
DEBUG_ERROR("MsgWaitForMultipleObjects failed: 0x%lx", GetLastError());
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,6 +151,7 @@ static DWORD WINAPI threadProc(LPVOID lParam) {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
DEBUG_ERROR("MsgWaitForMultipleObjects failed: 0x%lx", GetLastError());
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user