mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[WIN32K:NTUSER] Check for NULL desktop window in co_IntProcessMouseMessage
This commit is contained in:
parent
216196a10d
commit
2d4c0b87b1
1 changed files with 7 additions and 1 deletions
|
@ -1487,6 +1487,12 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, BOOL* NotForUs, L
|
||||||
|
|
||||||
pti = PsGetCurrentThreadWin32Thread();
|
pti = PsGetCurrentThreadWin32Thread();
|
||||||
pwndDesktop = UserGetDesktopWindow();
|
pwndDesktop = UserGetDesktopWindow();
|
||||||
|
if (pwndDesktop == NULL)
|
||||||
|
{
|
||||||
|
ERR("No desktop window!\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
MessageQueue = pti->MessageQueue;
|
MessageQueue = pti->MessageQueue;
|
||||||
CurInfo = IntGetSysCursorInfo();
|
CurInfo = IntGetSysCursorInfo();
|
||||||
pwndMsg = ValidateHwndNoErr(msg->hwnd);
|
pwndMsg = ValidateHwndNoErr(msg->hwnd);
|
||||||
|
|
Loading…
Reference in a new issue