Change RTC_CHECK to RTC_CHECK_EQ for improved printout of GetLastError.
TBR=olka@webrtc.org
NOTRY=true
Review-Url: https://codereview.webrtc.org/2061923004
Cr-Original-Commit-Position: refs/heads/master@{#13134}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 8b06ec0b716e35819229d155f0f421ba539e474b
diff --git a/base/task_queue_win.cc b/base/task_queue_win.cc
index 5ae6d92..e18c1f7 100644
--- a/base/task_queue_win.cc
+++ b/base/task_queue_win.cc
@@ -62,7 +62,7 @@
TaskQueue::~TaskQueue() {
RTC_DCHECK(!IsCurrent());
while (!PostThreadMessage(thread_.GetThreadRef(), WM_QUIT, 0, 0)) {
- RTC_CHECK(ERROR_NOT_ENOUGH_QUOTA == ::GetLastError());
+ RTC_CHECK_EQ(static_cast<DWORD>(ERROR_NOT_ENOUGH_QUOTA), ::GetLastError());
Sleep(1);
}
thread_.Stop();