Nikolay Sivov : comctl32/listview: Reuse cached control style.

Alexandre Julliard julliard at winehq.org
Mon May 25 10:06:33 CDT 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Mon May 25 00:07:29 2009 +0400

comctl32/listview: Reuse cached control style.

---

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

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 677bc1e..0011b6f 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9631,7 +9631,7 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
 	 * The "2" is there to mimic the native control. I think it may be
 	 * related to either padding or edges.  (GLA 7/2002)
 	 */
-    	if (!(GetWindowLongW(infoPtr->hwndSelf, GWL_STYLE) & WS_HSCROLL))
+	if (!(infoPtr->dwStyle & WS_HSCROLL))
 	    infoPtr->rcList.bottom -= GetSystemMetrics(SM_CYHSCROLL);
         infoPtr->rcList.bottom = max (infoPtr->rcList.bottom - 2, 0);
     }




More information about the wine-cvs mailing list