mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
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:
parent
c44fecf418
commit
79b9b1a431
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue