- Fix condition when window is null while in event. See CORE-7635.
authorJames Tabor <james.tabor@reactos.org>
Fri, 22 Nov 2013 17:07:02 +0000 (17:07 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 22 Nov 2013 17:07:02 +0000 (17:07 +0000)
svn path=/trunk/; revision=61078

reactos/win32ss/user/ntuser/event.c

index 6856f53..0fe5a10 100644 (file)
@@ -260,7 +260,7 @@ IntNotifyWinEvent(
               ERR("Global Event 0x%x, idObject %d\n", Event, idObject);
               IntCallLowLevelEvent( pEH,
                                     Event,
-                                    UserHMGetHandle(pWnd),
+                                    pWnd ? UserHMGetHandle(pWnd) : NULL,
                                     idObject,
                                     idChild);
            }
@@ -269,7 +269,7 @@ IntNotifyWinEvent(
               ERR("Local Event 0x%x, idObject %d\n", Event, idObject);
               co_IntCallEventProc( UserHMGetHandle(pEH),
                                    Event,
-                                   UserHMGetHandle(pWnd),
+                                   pWnd ? UserHMGetHandle(pWnd) : NULL,
                                    idObject,
                                    idChild,
                                    PtrToUint(NtCurrentTeb()->ClientId.UniqueThread),