mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[Win32k]
- Passing GetDesktopWindow() to GetWindowPlacement() causes NULL pointer dereference, Bug found by Nathan Osman, Fix CORE-9578. svn path=/trunk/; revision=67329
This commit is contained in:
parent
6523db387b
commit
5f0ebedf29
|
@ -397,7 +397,7 @@ WinPosInitInternalPos(PWND Wnd, RECTL *RestoreRect)
|
|||
POINT Size;
|
||||
RECTL Rect = *RestoreRect;
|
||||
|
||||
if (Wnd->spwndParent != UserGetDesktopWindow())
|
||||
if (Wnd->spwndParent && Wnd->spwndParent != UserGetDesktopWindow())
|
||||
{
|
||||
RECTL_vOffsetRect(&Rect,
|
||||
-Wnd->spwndParent->rcClient.left,
|
||||
|
|
Loading…
Reference in a new issue