[ros-diffs] [navaraf] 16764: Do not dereference NULL pointers and
this time for real.
navaraf at svn.reactos.com
navaraf at svn.reactos.com
Wed Jul 27 00:51:33 CEST 2005
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))
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050727/05b8ce71/attachment.html
More information about the Ros-diffs
mailing list