comdlg32: make tests pass with native comctl32

Daniel Jelinski djelinski1 at gmail.com
Wed Jun 6 18:00:25 CDT 2012


-------------- next part --------------
From 93ba26bb8d11bad1574c99d4e82aca118ee898cd Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Thu, 7 Jun 2012 00:48:13 +0200
Subject: comdlg32: make tests pass with native comctl32

---
 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 05bea2b..69ef528 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -3041,6 +3041,7 @@ static HRESULT WINAPI IFileDialogCustomize_fnAddMenu(IFileDialogCustomize *iface
                           This->cctrl_def_height, &ctrl);
     if(SUCCEEDED(hr))
     {
+        SendMessageW(ctrl->hwnd, TB_BUTTONSTRUCTSIZE, sizeof(tbb), 0);
         ctrl->type = IDLG_CCTRL_MENU;
 
         /* Add the actual button with a popup menu. */
-- 
1.7.5.4


More information about the wine-patches mailing list