[WIN32SS][NTUSER] Fix PostTimeMessage message time

This commit is contained in:
Katayama Hirofumi MZ 2019-01-16 21:12:59 +09:00 committed by Giannis Adamopoulos
parent 249d55f4a0
commit 87bfbb3ec7

View File

@ -399,6 +399,7 @@ PostTimerMessages(PWND Window)
PTHREADINFO pti;
BOOL Hit = FALSE;
PTIMER pTmr;
LARGE_INTEGER TickCount;
pti = PsGetCurrentThreadWin32Thread();
@ -411,10 +412,13 @@ PostTimerMessages(PWND Window)
(pTmr->pti == pti) &&
((pTmr->pWnd == Window) || (Window == NULL)) )
{
KeQueryTickCount(&TickCount);
Msg.hwnd = (pTmr->pWnd) ? pTmr->pWnd->head.h : 0;
Msg.message = (pTmr->flags & TMRF_SYSTEM) ? WM_SYSTIMER : WM_TIMER;
Msg.wParam = (WPARAM) pTmr->nID;
Msg.lParam = (LPARAM) pTmr->pfn;
Msg.time = MsqCalculateMessageTime(&TickCount);
// Fix all wine win:test_GetMessagePos WM_TIMER tests. See CORE-10867.
Msg.pt = gpsi->ptCursor;