- 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

svn path=/trunk/; revision=47917
This commit is contained in:
Matthias Kupfer 2010-06-30 18:40:20 +00:00
parent 576026667c
commit dd54fd1837
2 changed files with 3 additions and 4 deletions

View 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);

View 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