Module: wine Branch: master Commit: e27801e93b098b054ad6668a4c6c4189dd669bb2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e27801e93b098b054ad6668a4c...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Oct 15 16:35:19 2012 +0900
user32: Make sure that window's normal_rect is initialized at window creation time.
---
dlls/user32/win.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 66eaf09..645d563 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -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 );