Author: jimtabor
Date: Wed Sep 27 22:39:17 2017
New Revision: 75980
URL:
http://svn.reactos.org/svn/reactos?rev=75980&view=rev
Log:
[NtUser]
- Patch by MudHead : Should test for invalid parent parameter. See CORE-13718.
Modified:
trunk/reactos/win32ss/user/ntuser/window.c
Modified: trunk/reactos/win32ss/user/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/window…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] Wed Sep 27 22:39:17 2017
@@ -1944,7 +1944,7 @@
}
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 */
}
@@ -1955,6 +1955,12 @@
if (hWndParent && !ParentWindow)
{
ERR("Got invalid parent window handle\n");
+ goto cleanup;
+ }
+ else if (hWndOwner && !OwnerWindow)
+ {
+ ERR("Got invalid owner window handle\n");
+ ParentWindow = NULL;
goto cleanup;
}