[Win32SS]

- Fix all wine win:test_GetMessagePos tests.
- See CORE-10867, please verify this is a fix.

svn path=/trunk/; revision=70782
This commit is contained in:
James Tabor 2016-02-24 08:41:26 +00:00
parent c87591d771
commit c8fff05661
2 changed files with 10 additions and 0 deletions

View 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;
}

View 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;