Jason Edmeades : comctl32: Fix missing toolbar button with HINST_COMMCTRL.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 26 06:36:58 CDT 2007


Module: wine
Branch: master
Commit: 718e23fb6857cb7abc23f1369197f6353f47aa7f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=718e23fb6857cb7abc23f1369197f6353f47aa7f

Author: Jason Edmeades <jason.edmeades at googlemail.com>
Date:   Wed Jul 25 20:51:18 2007 +0100

comctl32: Fix missing toolbar button with HINST_COMMCTRL.

---

 dlls/comctl32/commctrl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c
index 086d0ed..c09bc04 100644
--- a/dlls/comctl32/commctrl.c
+++ b/dlls/comctl32/commctrl.c
@@ -704,7 +704,7 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps,
 
 
 	/* add bitmaps */
-	if (nBitmaps > 0)
+	if (nBitmaps > 0 || hBMInst == HINST_COMMCTRL)
 	{
 	    tbab.hInst = hBMInst;
 	    tbab.nID   = wBMID;




More information about the wine-cvs mailing list