We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 775a0ec + 1e0a4af commit cb39e7fCopy full SHA for cb39e7f
stdlib/public/runtime/MutexWin32.cpp
@@ -23,7 +23,7 @@ using namespace swift;
23
void ConditionPlatformHelper::wait(CONDITION_VARIABLE &condition,
24
SRWLOCK &mutex) {
25
BOOL result = SleepConditionVariableSRW(&condition, &mutex, INFINITE, 0);
26
- if (result == FALSE) {
+ if (!result) {
27
DWORD errorcode = GetLastError();
28
fatalError(/* flags = */ 0,
29
"'SleepConditionVariableSRW()' failed with error code %d\n",
0 commit comments