<rdar://problem/5643785> Fix iBench regression caused by mis-placed nested...
[WebKit-https.git] / WebCore / platform / win / SharedTimerWin.cpp
index b472764826cbc74b7472f98ecbcd6b8658fb036b..1ebc2558612612d55cacf4c4ea2b93ea14ecc73b 100644 (file)
@@ -45,11 +45,13 @@ const int sharedTimerID = 1000;
 
 LRESULT CALLBACK TimerWindowWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 {
-    if (message == timerFiredMessage || (message == WM_TIMER && wParam == sharedTimerID)) {
+    if (message == timerFiredMessage) {
         processingCustomTimerMessage = true;
         sharedTimerFiredFunction();
         processingCustomTimerMessage = false;
-    } else
+    } else if (message == WM_TIMER && wParam == sharedTimerID)
+        sharedTimerFiredFunction();
+    else
         return DefWindowProc(hWnd, message, wParam, lParam);
     return 0;
 }