Patch by Dan Hipschman, Call SetLastError in CreateWindowEx when WS_CHILD is set with no parent.

svn path=/trunk/; revision=23452
This commit is contained in:
James Tabor 2006-08-05 01:48:20 +00:00
parent c44fecf418
commit 79b9b1a431

View file

@ -1450,6 +1450,7 @@ co_IntCreateWindowEx(DWORD dwExStyle,
}
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 */
}