Do not dereference NULL pointers and this time for real.
Modified: trunk/reactos/subsys/win32k/ntuser/winpos.c
_____
Modified: trunk/reactos/subsys/win32k/ntuser/winpos.c
--- trunk/reactos/subsys/win32k/ntuser/winpos.c 2005-07-26 22:40:03 UTC
(rev 16763)
+++ trunk/reactos/subsys/win32k/ntuser/winpos.c 2005-07-26 22:51:03 UTC
(rev 16764)
@@ -164,7 +164,7 @@
done:
Fg = NtUserGetForegroundWindow();
- if (!Fg || Window->Self == Fg)
+ if (Wnd && (!Fg || Window->Self == Fg))
{
if (IntSetForegroundWindow(Wnd))
{