user32: Make sure that window's normal_rect is initialized at window creation time.

This commit is contained in:
Dmitry Timoshkov 2012-10-15 16:35:19 +09:00 committed by Alexandre Julliard
parent 52607ba66b
commit e27801e93b
1 changed files with 1 additions and 0 deletions

View File

@ -1467,6 +1467,7 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module,
wndPtr->min_pos.x = wndPtr->min_pos.y = -1;
wndPtr->max_pos.x = wndPtr->max_pos.y = -1;
SetRect( &wndPtr->normal_rect, cs->x, cs->y, cs->x + cs->cx, cs->y + cs->cy );
if (wndPtr->dwStyle & WS_SYSMENU) SetSystemMenu( hwnd, 0 );