- Patch by MudHead : Should test for invalid parent parameter. See CORE-13718.

svn path=/trunk/; revision=75980
This commit is contained in:
James Tabor 2017-09-27 22:39:17 +00:00
parent 8cc85a404a
commit 64bf415133

View file

@ -1944,7 +1944,7 @@ co_UserCreateWindowEx(CREATESTRUCTW* Cs,
}
else if ((Cs->style & (WS_CHILD|WS_POPUP)) == WS_CHILD)
{
ERR("Cannot create a child window without a parrent!\n");
ERR("Cannot create a child window without a parent!\n");
EngSetLastError(ERROR_TLW_WITH_WSCHILD);
goto cleanup; /* WS_CHILD needs a parent, but WS_POPUP doesn't */
}
@ -1957,6 +1957,12 @@ co_UserCreateWindowEx(CREATESTRUCTW* Cs,
ERR("Got invalid parent window handle\n");
goto cleanup;
}
else if (hWndOwner && !OwnerWindow)
{
ERR("Got invalid owner window handle\n");
ParentWindow = NULL;
goto cleanup;
}
if(OwnerWindow)
{