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:
Austin Eng 2020-08-14 22:44:02 +00:00 committed by Commit Bot service account
parent f580096468
commit 5e9b29fab9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ namespace utils {
~WindowsDebugLogger() override {
if (mShouldExitHandle != nullptr) {
ASSERT(SetEvent(mShouldExitHandle));
ASSERT(SetEvent(mShouldExitHandle) != 0);
CloseHandle(mShouldExitHandle);
}