[Win32SS]
[reactos.git] / reactos / win32ss / user / ntuser / msgqueue.c
index 7187909..eb48f94 100644 (file)
@@ -1982,6 +1982,14 @@ co_MsqPeekHardwareMessage(IN PTHREADINFO pti,
          if (AcceptMessage)
          {
             *pMsg = msg;
+            // Fix all but one wine win:test_GetMessagePos WM_TIMER tests. See PostTimerMessages.
+            if (!RtlEqualMemory(&pti->ptLast, &msg.pt, sizeof(POINT)))
+            {
+               pti->TIF_flags |= TIF_MSGPOSCHANGED;
+            }
+            pti->ptLast   = msg.pt;
+            pti->timeLast = msg.time;
+            MessageQueue->ExtraInfo = ExtraInfo;
             Ret = TRUE;
             break;
          }