[Win32ss]

- Validate the parent window before locking it. Attempt to fix CORE-9117.

svn path=/trunk/; revision=66177
This commit is contained in:
James Tabor 2015-02-05 23:46:57 +00:00
parent bff824b2ca
commit b07541cc5d

View file

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