From 9c5c81eba23196bc0832a92ffffec4e1af1d6293 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 10 Jul 2008 14:00:50 +0000 Subject: [PATCH] don't deref NULL pointer svn path=/trunk/; revision=34412 --- reactos/subsystems/win32/win32k/ntuser/winpos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/winpos.c b/reactos/subsystems/win32/win32k/ntuser/winpos.c index 0a41768db5d..aa3e0d812f1 100644 --- a/reactos/subsystems/win32/win32k/ntuser/winpos.c +++ b/reactos/subsystems/win32/win32k/ntuser/winpos.c @@ -117,6 +117,7 @@ BOOL FASTCALL can_activate_window( PWINDOW_OBJECT Wnd OPTIONAL) LONG style; if (!Wnd) return FALSE; + if (!Wnd->Wnd) return FALSE; style = Wnd->Wnd->Style; if (!(style & WS_VISIBLE) && Wnd->OwnerThread->ThreadsProcess != CsrProcess) return FALSE;