[07/13] comctl32/toolbar: Use already cached control window style

Nikolay Sivov bunglehead at gmail.com
Mon May 18 12:19:57 CDT 2009


Changelog:
    - Use already cached control window style

>From 279b94847386f203b09bd3900e631c99e571bb5d Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 18 May 2009 19:36:26 +0400
Subject: Use already cached control window style

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

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index f1c3fa7..097d628 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -3612,7 +3612,7 @@ TOOLBAR_GetState (const TOOLBAR_INFO *infoPtr, WPARAM wParam)
 static LRESULT
 TOOLBAR_GetStyle (const TOOLBAR_INFO *infoPtr)
 {
-    return GetWindowLongW(infoPtr->hwndSelf, GWL_STYLE);
+    return infoPtr->dwStyle;
 }
 

@@ -5491,7 +5491,7 @@ TOOLBAR_LButtonDblClk (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
 
     if (nHit >= 0)
         TOOLBAR_LButtonDown (infoPtr, wParam, lParam);
-    else if (GetWindowLongW (infoPtr->hwndSelf, GWL_STYLE) & CCS_ADJUSTABLE)
+    else if (infoPtr->dwStyle & CCS_ADJUSTABLE)
 	TOOLBAR_Customize (infoPtr);
 
     return 0;
-- 
1.5.6.5







More information about the wine-patches mailing list