user32: Handle all kinds of values returned by WIN_GetPtr.
This commit is contained in:
parent
a4dc3213ae
commit
8f1d058b9d
|
@ -1231,7 +1231,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
|
|||
|
||||
/* send the size messages */
|
||||
|
||||
if (!(wndPtr = WIN_GetPtr(hwnd))) return 0;
|
||||
if (!(wndPtr = WIN_GetPtr( hwnd )) ||
|
||||
wndPtr == WND_OTHER_PROCESS || wndPtr == WND_DESKTOP) return 0;
|
||||
if (!(wndPtr->flags & WIN_NEED_SIZE))
|
||||
{
|
||||
rect = wndPtr->rectClient;
|
||||
|
|
Loading…
Reference in New Issue