[PATCH] comctl32/button: Fix paint handler check when theming is on

Nikolay Sivov nsivov at codeweavers.com
Wed Feb 14 05:05:15 CST 2018


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

Fixes crash reported as https://bugs.winehq.org/show_bug.cgi?id=44510

 dlls/comctl32/button.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c
index 7184d19374..6458ba1444 100644
--- a/dlls/comctl32/button.c
+++ b/dlls/comctl32/button.c
@@ -393,7 +393,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
         theme = GetWindowTheme( hWnd );
         hdc = wParam ? (HDC)wParam : BeginPaint( hWnd, &ps );
 
-        if (theme && btnPaintFunc[btn_type])
+        if (theme && btnThemedPaintFunc[btn_type])
         {
             ButtonState drawState;
             UINT dtflags;
-- 
2.15.1




More information about the wine-devel mailing list