- move set of msg-time (for messages) back to msg queue (msg time is needed for all...
authorMatthias Kupfer <mkupfer@reactos.org>
Wed, 30 Jun 2010 18:40:20 +0000 (18:40 +0000)
committerMatthias Kupfer <mkupfer@reactos.org>
Wed, 30 Jun 2010 18:40:20 +0000 (18:40 +0000)
- ClickLock will work again

svn path=/trunk/; revision=47917

reactos/subsystems/win32/win32k/ntuser/cursoricon.c
reactos/subsystems/win32/win32k/ntuser/msgqueue.c

index 832d820..4fd0941 100644 (file)
@@ -179,7 +179,6 @@ BOOL UserSetCursorPos( INT x, INT y, BOOL CallHooks)
 {
     PWINDOW_OBJECT DesktopWindow;
     PSYSTEM_CURSORINFO CurInfo;
-    LARGE_INTEGER LargeTickCount;
     MSLLHOOKSTRUCT MouseHookData;
     HDC hDC;
     MSG Msg;
@@ -223,9 +222,6 @@ BOOL UserSetCursorPos( INT x, INT y, BOOL CallHooks)
     gpsi->ptCursor.x = x;
     gpsi->ptCursor.y = y;
 
-    KeQueryTickCount(&LargeTickCount);
-    Msg.time = MsqCalculateMessageTime(&LargeTickCount);
-
     //Move the mouse pointer
     GreMovePointer(hDC, x, y);
 
index 52587ac..2567c80 100644 (file)
@@ -171,9 +171,12 @@ MsqInitializeImpl(VOID)
 VOID FASTCALL
 MsqInsertSystemMessage(MSG* Msg)
 {
+   LARGE_INTEGER LargeTickCount;
    KIRQL OldIrql;
    ULONG Prev;
 
+   KeQueryTickCount(&LargeTickCount);
+   Msg->time = MsqCalculateMessageTime(&LargeTickCount);
    /*
     * If we got WM_MOUSEMOVE and there are already messages in the
     * system message queue, check if the last message is mouse move