Do not dereference NULL pointers and this time for real.
authorFilip Navara <filip.navara@gmail.com>
Tue, 26 Jul 2005 22:51:03 +0000 (22:51 +0000)
committerFilip Navara <filip.navara@gmail.com>
Tue, 26 Jul 2005 22:51:03 +0000 (22:51 +0000)
svn path=/trunk/; revision=16764

reactos/subsys/win32k/ntuser/winpos.c

index f1de608..52f1fd4 100644 (file)
@@ -164,7 +164,7 @@ WinPosActivateOtherWindow(PWINDOW_OBJECT Window)
 
 done:
   Fg = NtUserGetForegroundWindow();
-  if (!Fg || Window->Self == Fg)
+  if (Wnd && (!Fg || Window->Self == Fg))
   {
     if (IntSetForegroundWindow(Wnd))
     {