From 7c020d5ce133087315085a6ab469847047ae4aa8 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 28 Sep 2014 11:42:24 +0000 Subject: [PATCH 1/1] [Win32k] - Process hardware keyboard and mouse buttons before mouse move messages. Should fix CORE-7797. svn path=/trunk/; revision=64363 --- reactos/win32ss/user/ntuser/message.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/reactos/win32ss/user/ntuser/message.c b/reactos/win32ss/user/ntuser/message.c index caa70682f04..4702c83bc4e 100644 --- a/reactos/win32ss/user/ntuser/message.c +++ b/reactos/win32ss/user/ntuser/message.c @@ -852,17 +852,6 @@ co_IntPeekMessage( PMSG Msg, } /* Check for hardware events. */ - if ((ProcessMask & QS_MOUSE) && - co_MsqPeekMouseMove( pti, - RemoveMessages, - Window, - MsgFilterMin, - MsgFilterMax, - Msg )) - { - return TRUE; - } - if ((ProcessMask & QS_INPUT) && co_MsqPeekHardwareMessage( pti, RemoveMessages, @@ -875,6 +864,17 @@ co_IntPeekMessage( PMSG Msg, return TRUE; } + if ((ProcessMask & QS_MOUSE) && + co_MsqPeekMouseMove( pti, + RemoveMessages, + Window, + MsgFilterMin, + MsgFilterMax, + Msg )) + { + return TRUE; + } + /* Check for sent messages again. */ while ( co_MsqDispatchOneSentMessage(pti) ) { @@ -1198,7 +1198,7 @@ UserPostMessage( HWND Wnd, Window = UserGetWindowObject(Wnd); if ( !Window ) { - ERR("UserPostMessage: Invalid handle 0x%p!\n",Wnd); + ERR("UserPostMessage: Invalid handle 0x%p Msg %d!\n",Wnd,Msg); return FALSE; } -- 2.17.1