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-Commit-Position: refs/heads/master@{#13134}
This commit is contained in:
tommi 2016-06-14 08:38:07 -07:00 committed by Commit bot
parent 6806136aec
commit 8b06ec0b71

View File

@ -62,7 +62,7 @@ TaskQueue::TaskQueue(const char* queue_name)
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();