mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[NtUser]
- Patch by MudHead : Should test for invalid parent parameter. See CORE-13718. svn path=/trunk/; revision=75980
This commit is contained in:
parent
8cc85a404a
commit
64bf415133
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue