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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-02-14 14:05:15 +03:00 committed by Alexandre Julliard
parent 457617d545
commit 389c3add0a
1 changed files with 1 additions and 1 deletions

View File

@ -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;