Do not dereference NULL pointers and this time for real.

svn path=/trunk/; revision=16764
This commit is contained in:
Filip Navara 2005-07-26 22:51:03 +00:00
parent 09e1dd8b9b
commit dac7500f25

View file

@ -164,7 +164,7 @@ WinPosActivateOtherWindow(PWINDOW_OBJECT Window)
done: done:
Fg = NtUserGetForegroundWindow(); Fg = NtUserGetForegroundWindow();
if (!Fg || Window->Self == Fg) if (Wnd && (!Fg || Window->Self == Fg))
{ {
if (IntSetForegroundWindow(Wnd)) if (IntSetForegroundWindow(Wnd))
{ {