diff options
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/test/chrome_frame_test_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.h b/chrome_frame/test/chrome_frame_test_utils.h index 82fddb2..781ba7f 100644 --- a/chrome_frame/test/chrome_frame_test_utils.h +++ b/chrome_frame/test/chrome_frame_test_utils.h @@ -141,8 +141,7 @@ class HungCOMCallDetector DWORD tick_count, DWORD pending_type) { MSG msg = {0}; - if (PeekMessage(&msg, m_hWnd, WM_TIMER, WM_TIMER, PM_NOREMOVE)) { - is_hung_ = true; + if (is_hung_) { return PENDINGMSG_CANCELCALL; } return PENDINGMSG_WAITDEFPROCESS; @@ -153,6 +152,7 @@ class HungCOMCallDetector } LRESULT OnTimer(UINT msg, WPARAM wp, LPARAM lp, BOOL& handled) { // NOLINT + is_hung_ = true; return 1; } @@ -176,7 +176,7 @@ class HungCOMCallDetector } static const int kHungDetectTimerId = 0x0000baba; - SetTimer(kHungDetectTimerId, 1000 * (timeout_seconds + 20), NULL); + SetTimer(kHungDetectTimerId, 1000 * (timeout_seconds + 40), NULL); return S_OK; } |