From 1984a7f218edd00a6804faa2f978cdaf8c2475b3 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 22 Nov 2013 17:07:02 +0000 Subject: [PATCH] - Fix condition when window is null while in event. See CORE-7635. svn path=/trunk/; revision=61078 --- reactos/win32ss/user/ntuser/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/win32ss/user/ntuser/event.c b/reactos/win32ss/user/ntuser/event.c index 6856f53a5d7..0fe5a10e2fe 100644 --- a/reactos/win32ss/user/ntuser/event.c +++ b/reactos/win32ss/user/ntuser/event.c @@ -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),