Index: subsystems/win32/win32k/ntuser/msgqueue.c =================================================================== --- subsystems/win32/win32k/ntuser/msgqueue.c (revision 53860) +++ subsystems/win32/win32k/ntuser/msgqueue.c (working copy) @@ -110,6 +110,9 @@ PWND pWnd; pti = PsGetCurrentThreadWin32Thread(); + if (!pti) + return (HCURSOR)0; + MessageQueue = pti->MessageQueue; /* Get the screen DC */