[Win32ss]
authorJames Tabor <james.tabor@reactos.org>
Thu, 5 Feb 2015 23:46:57 +0000 (23:46 +0000)
committerJames Tabor <james.tabor@reactos.org>
Thu, 5 Feb 2015 23:46:57 +0000 (23:46 +0000)
- Validate the parent window before locking it. Attempt to fix CORE-9117.

svn path=/trunk/; revision=66177

reactos/win32ss/user/ntuser/window.c

index d747b74..15c038d 100644 (file)
@@ -1473,7 +1473,7 @@ static void IntSendParentNotify( PWND pWindow, UINT msg )
     if ( (pWindow->style & (WS_CHILD | WS_POPUP)) == WS_CHILD &&
          !(pWindow->style & WS_EX_NOPARENTNOTIFY))
     {
-        if (pWindow->spwndParent && pWindow->spwndParent != UserGetDesktopWindow())
+        if (VerifyWnd(pWindow->spwndParent) && pWindow->spwndParent != UserGetDesktopWindow())
         {
             USER_REFERENCE_ENTRY Ref;
             UserRefObjectCo(pWindow->spwndParent, &Ref);