[NTUSER] Fix Skype and other programs installer windows not able to be moved with mouse by clicking on title bar (#6819)

Patch by @I_Kill_Bugs

Add condition into msgqueue along with filter testing to reject messages that are "NotForUs".
Also, do not set AcceptMessage to FALSE, but just keep msgDblClk and idSysPeek values and continue.

CORE-19487
CORE-19538
This commit is contained in:
Doug Lyons 2024-05-07 09:10:11 -05:00 committed by GitHub
parent d234dc2d52
commit 0c0062ac9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1945,6 +1945,7 @@ co_MsqPeekHardwareMessage(IN PTHREADINFO pti,
ULONG_PTR idSave;
DWORD QS_Flags;
LONG_PTR ExtraInfo;
MSG clk_msg;
BOOL Ret = FALSE;
PUSER_MESSAGE_QUEUE MessageQueue = pti->MessageQueue;
@ -1994,17 +1995,22 @@ co_MsqPeekHardwareMessage(IN PTHREADINFO pti,
msg = CurrentMessage->Msg;
ExtraInfo = CurrentMessage->ExtraInfo;
QS_Flags = CurrentMessage->QS_Flags;
clk_msg = MessageQueue->msgDblClk;
NotForUs = FALSE;
UpdateKeyStateFromMsg(MessageQueue, &msg);
AcceptMessage = co_IntProcessHardwareMessage(&msg, &Remove, &NotForUs, ExtraInfo, MsgFilterLow, MsgFilterHigh);
if (MsgFilterLow != 0 || MsgFilterHigh != 0)
if (!NotForUs && (MsgFilterLow != 0 || MsgFilterHigh != 0))
{
/* Don't return message if not in range */
if (msg.message < MsgFilterLow || msg.message > MsgFilterHigh)
AcceptMessage = FALSE;
{
MessageQueue->msgDblClk = clk_msg;
MessageQueue->idSysPeek = idSave;
continue;
}
}
if (Remove)