mirror of
https://github.com/reactos/reactos.git
synced 2024-12-01 23:43:32 +08:00
[WIN32SS][NTUSER] Fix PostTimeMessage message time
This commit is contained in:
parent
249d55f4a0
commit
87bfbb3ec7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user