[Win32SS]
authorJames Tabor <james.tabor@reactos.org>
Wed, 24 Feb 2016 08:41:26 +0000 (08:41 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 24 Feb 2016 08:41:26 +0000 (08:41 +0000)
- Fix all wine win:test_GetMessagePos tests.
- See CORE-10867, please verify this is a fix.

svn path=/trunk/; revision=70782

reactos/win32ss/user/ntuser/msgqueue.c
reactos/win32ss/user/ntuser/timer.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;
          }
index d2789bb..49ee063 100644 (file)
@@ -415,6 +415,8 @@ PostTimerMessages(PWND Window)
            Msg.message = (pTmr->flags & TMRF_SYSTEM) ? WM_SYSTIMER : WM_TIMER;
            Msg.wParam  = (WPARAM) pTmr->nID;
            Msg.lParam  = (LPARAM) pTmr->pfn;
+           // Fix all wine win:test_GetMessagePos WM_TIMER tests. See CORE-10867.
+           Msg.pt      = gpsi->ptCursor;
 
            MsqPostMessage(pti, &Msg, FALSE, (QS_POSTMESSAGE|QS_ALLPOSTMESSAGE), 0, 0);
            pTmr->flags &= ~TMRF_READY;