user32: Make sure that window's normal_rect is initialized at window creation time.
This commit is contained in:
parent
52607ba66b
commit
e27801e93b
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue