[ros-diffs] [jimtabor] 23452: Patch by Dan Hipschman, Call SetLastError in CreateWindowEx when WS_CHILD is set with no parent.
jimtabor at svn.reactos.org
jimtabor at svn.reactos.org
Sat Aug 5 03:48:20 CEST 2006
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/ntuser/window.c?rev=23452&r1=23451&r2=23452&view=diff
==============================================================================
--- 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 */
}
More information about the Ros-diffs
mailing list