Fix ASSERT in WindowsDebugLogger
SetEvent returns non-zero on success, not zero. Tbr=cwallez@chromium.org Bug: none Change-Id: Ib6ea74b19799bc3211136a5788b2bce8880f3b17 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/26841 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
f580096468
commit
5e9b29fab9
|
@ -83,7 +83,7 @@ namespace utils {
|
||||||
|
|
||||||
~WindowsDebugLogger() override {
|
~WindowsDebugLogger() override {
|
||||||
if (mShouldExitHandle != nullptr) {
|
if (mShouldExitHandle != nullptr) {
|
||||||
ASSERT(SetEvent(mShouldExitHandle));
|
ASSERT(SetEvent(mShouldExitHandle) != 0);
|
||||||
CloseHandle(mShouldExitHandle);
|
CloseHandle(mShouldExitHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue