Stefan Huehner : comctl32: rebar: Test the rebar style for RBBS_VARIABLEHEIGHT, not the passed in structure.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 13 07:56:17 CDT 2007


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

Author: Stefan Huehner <stefan at huehner.org>
Date:   Mon Mar 12 16:50:54 2007 +0100

comctl32: rebar: Test the rebar style for RBBS_VARIABLEHEIGHT, not the passed in structure.

---

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

diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 2972ab2..e7a1e1b 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -1575,7 +1575,7 @@ REBAR_CommonSetupBand(HWND hwnd, LPREBARBANDINFOW lprbbi, REBAR_BAND *lpBand)
 	lpBand->cxMinChild = lprbbi->cxMinChild;
 	lpBand->cyMinChild = lprbbi->cyMinChild;
         /* These fields where added in WIN32_IE == 0x400 and are set only for RBBS_VARIABLEHEIGHT bands */
-        if (lprbbi->cbSize >= sizeof (REBARBANDINFOA) && (lprbbi->fStyle & RBBS_VARIABLEHEIGHT)) {
+        if (lprbbi->cbSize >= sizeof (REBARBANDINFOA) && (lpBand->fStyle & RBBS_VARIABLEHEIGHT)) {
 	    lpBand->cyMaxChild = lprbbi->cyMaxChild;
             lpBand->cyIntegral = lprbbi->cyIntegral;
 




More information about the wine-cvs mailing list