[PATCH 1/2] comdlg32: Fetch rectangle from the correct control.

David Hedberg david.hedberg at gmail.com
Mon Apr 4 04:01:50 CDT 2011


---
 dlls/comdlg32/itemdlg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c
index 35910c3..f447828 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -354,6 +354,7 @@ static SIZE update_layout(FileDialogImpl *This)
     }
 
     /* Open/Save button */
+    hwnd = GetDlgItem(This->dlg_hwnd, IDOK);
     if(hwnd)
     {
         int open_width, open_height;
-- 
1.7.4.1




More information about the wine-patches mailing list