Nikolay Sivov : comctl32/button: Fix paint handler check when theming is on.
Alexandre Julliard
julliard at winehq.org
Wed Feb 14 15:12:11 CST 2018
Module: wine
Branch: master
Commit: 389c3add0ad93f3b2180c636363b25f6c78757a2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=389c3add0ad93f3b2180c636363b25f6c78757a2
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Feb 14 14:05:15 2018 +0300
comctl32/button: Fix paint handler check when theming is on.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 7184d19..6458ba1 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;
More information about the wine-cvs
mailing list