[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:
Quantum 2021-07-20 18:46:33 -04:00 committed by Geoffrey McRae
parent 1a88996c47
commit b1c26aaa95
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ static DWORD WINAPI threadProc(LPVOID lParam)
}
break;
default:
DEBUG_ERROR("MsgWaitForMultipleObjects failed: 0x%lx", GetLastError());
goto exit;
}
}

View File

@ -151,6 +151,7 @@ static DWORD WINAPI threadProc(LPVOID lParam) {
}
break;
default:
DEBUG_ERROR("MsgWaitForMultipleObjects failed: 0x%lx", GetLastError());
goto exit;
}
}