[ros-diffs] [mkupfer] 47917: - move set of msg-time (for messages) back to msg queue (msg time is needed for all mouse events not only mouse move) - ClickLock will work again

mkupfer at svn.reactos.org mkupfer at svn.reactos.org
Wed Jun 30 18:40:21 UTC 2010


Author: mkupfer
Date: Wed Jun 30 18:40:20 2010
New Revision: 47917

URL: http://svn.reactos.org/svn/reactos?rev=47917&view=rev
Log:
- move set of msg-time (for messages) back to msg queue (msg time is needed for all mouse events not only mouse move)
- ClickLock will work again

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
    trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c?rev=47917&r1=47916&r2=47917&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] Wed Jun 30 18:40:20 2010
@@ -179,7 +179,6 @@
 {
     PWINDOW_OBJECT DesktopWindow;
     PSYSTEM_CURSORINFO CurInfo;
-    LARGE_INTEGER LargeTickCount;
     MSLLHOOKSTRUCT MouseHookData;
     HDC hDC;
     MSG Msg;
@@ -222,9 +221,6 @@
     //Store the new cursor position
     gpsi->ptCursor.x = x;
     gpsi->ptCursor.y = y;
-
-    KeQueryTickCount(&LargeTickCount);
-    Msg.time = MsqCalculateMessageTime(&LargeTickCount);
 
     //Move the mouse pointer
     GreMovePointer(hDC, x, y);

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c?rev=47917&r1=47916&r2=47917&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Wed Jun 30 18:40:20 2010
@@ -171,9 +171,12 @@
 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




More information about the Ros-diffs mailing list