Author: zguo
Date: Tue Oct 28 22:01:57 2014
New Revision: 65091
URL:
http://svn.reactos.org/svn/reactos?rev=65091&view=rev
Log:
[WIN32SS]
Fix icon selection regression caused by cascading fix. In this case, this should probably
go into trunk.
CORE-8574
Modified:
branches/0.3.17/reactos/win32ss/user/ntuser/msgqueue.c
Modified: branches/0.3.17/reactos/win32ss/user/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/branches/0.3.17/reactos/win32ss/user/ntu…
==============================================================================
--- branches/0.3.17/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] (original)
+++ branches/0.3.17/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] Tue Oct 28
22:01:57 2014
@@ -1676,8 +1676,21 @@
MSG msg;
PUSER_MESSAGE_QUEUE MessageQueue = pti->MessageQueue;
+ // First look for any buttons downs or ups before testing for the move.
+ if (pti->nCntsQBits[QSRosMouseButton])
+ {
+ if (co_MsqPeekHardwareMessage( pti,
+ Remove,
+ Window,
+ MsgFilterLow,
+ MsgFilterHigh,
+ QS_MOUSEBUTTON,
+ pMsg))
+ return TRUE; // Have one and return.
+ }
+
if(!(MessageQueue->MouseMoved))
- return FALSE;
+ return FALSE;
if (!MessageQueue->ptiSysLock)
{