Author: jimtabor
Date: Tue Apr 21 04:45:09 2015
New Revision: 67329
URL:
http://svn.reactos.org/svn/reactos?rev=67329&view=rev
Log:
[Win32k]
- Passing GetDesktopWindow() to GetWindowPlacement() causes NULL pointer dereference, Bug
found by Nathan Osman, Fix CORE-9578.
Modified:
trunk/reactos/win32ss/user/ntuser/winpos.c
Modified: trunk/reactos/win32ss/user/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winpos…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] Tue Apr 21 04:45:09 2015
@@ -397,7 +397,7 @@
POINT Size;
RECTL Rect = *RestoreRect;
- if (Wnd->spwndParent != UserGetDesktopWindow())
+ if (Wnd->spwndParent && Wnd->spwndParent != UserGetDesktopWindow())
{
RECTL_vOffsetRect(&Rect,
-Wnd->spwndParent->rcClient.left,