https://git.reactos.org/?p=reactos.git;a=commitdiff;h=87bfbb3ec7a22d809f911…
commit 87bfbb3ec7a22d809f9116b848ea090c5c6fe104
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Jan 16 21:12:59 2019 +0900
Commit: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
CommitDate: Wed Jan 16 22:59:36 2019 +0200
[WIN32SS][NTUSER] Fix PostTimeMessage message time
---
win32ss/user/ntuser/timer.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/win32ss/user/ntuser/timer.c b/win32ss/user/ntuser/timer.c
index 49ee063fe1..fc348eeba1 100644
--- a/win32ss/user/ntuser/timer.c
+++ b/win32ss/user/ntuser/timer.c
@@ -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;