Commit 389c3add authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/button: Fix paint handler check when theming is on.

parent 457617d5
...@@ -393,7 +393,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L ...@@ -393,7 +393,7 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
theme = GetWindowTheme( hWnd ); theme = GetWindowTheme( hWnd );
hdc = wParam ? (HDC)wParam : BeginPaint( hWnd, &ps ); hdc = wParam ? (HDC)wParam : BeginPaint( hWnd, &ps );
if (theme && btnPaintFunc[btn_type]) if (theme && btnThemedPaintFunc[btn_type])
{ {
ButtonState drawState; ButtonState drawState;
UINT dtflags; UINT dtflags;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment