Author: jimtabor
Date: Sat Aug 5 05:48:20 2006
New Revision: 23452
URL:
http://svn.reactos.org/svn/reactos?rev=23452&view=rev
Log:
Patch by Dan Hipschman, Call SetLastError in CreateWindowEx when WS_CHILD is set with no
parent.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c Sat Aug 5 05:48:20 2006
@@ -1450,6 +1450,7 @@
}
else if ((dwStyle & (WS_CHILD | WS_POPUP)) == WS_CHILD)
{
+ SetLastWin32Error(ERROR_TLW_WITH_WSCHILD);
RETURN( (HWND)0); /* WS_CHILD needs a parent, but WS_POPUP doesn't */
}