Author: jimtabor
Date: Wed Feb 24 08:41:26 2016
New Revision: 70782

URL: http://svn.reactos.org/svn/reactos?rev=70782&view=rev
Log:
[Win32SS]
- Fix all wine win:test_GetMessagePos tests.
- See CORE-10867, please verify this is a fix.

Modified:
    trunk/reactos/win32ss/user/ntuser/msgqueue.c
    trunk/reactos/win32ss/user/ntuser/timer.c

Modified: trunk/reactos/win32ss/user/ntuser/msgqueue.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/msgqueue.c?rev=70782&r1=70781&r2=70782&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/msgqueue.c        [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/msgqueue.c        [iso-8859-1] Wed Feb 24 
08:41:26 2016
@@ -1982,6 +1982,14 @@
          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;
          }

Modified: trunk/reactos/win32ss/user/ntuser/timer.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/timer.c?rev=70782&r1=70781&r2=70782&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/timer.c   [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/timer.c   [iso-8859-1] Wed Feb 24 
08:41:26 2016
@@ -415,6 +415,8 @@
            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;


Reply via email to