From 0efd552b5be6d0a0bd0fde93f13a65b9b2ac5074 Mon Sep 17 00:00:00 2001 From: David Hedberg Date: Mon, 4 Apr 2011 11:01:50 +0200 Subject: [PATCH] comdlg32: Fetch rectangle from the correct control. --- dlls/comdlg32/itemdlg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c index 35910c30d4f..f44782818a0 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;