don't deref NULL pointer

svn path=/trunk/; revision=34412
This commit is contained in:
Christoph von Wittich 2008-07-10 14:00:50 +00:00
parent 6f1c458cd7
commit 9c5c81eba2

View file

@ -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;