user32: Handle all kinds of values returned by WIN_GetPtr.

This commit is contained in:
Dmitry Timoshkov 2008-10-29 17:11:21 +08:00 committed by Alexandre Julliard
parent a4dc3213ae
commit 8f1d058b9d
1 changed files with 2 additions and 1 deletions

View File

@ -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;