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

Dmitry Timoshkov dmitry at baikal.ru
Mon Oct 15 02:35:19 CDT 2012


This patch should fix the problem reported in the bug #30878.
---
 dlls/user32/win.c | 1 +
 1 file changed, 1 insertion(+)

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 );
 
-- 
1.7.12.3




More information about the wine-patches mailing list