winecfg: Do not overwrite theme each time an item is drawn.

This commit is contained in:
Michael Müller 2015-08-19 06:24:19 +02:00 committed by Alexandre Julliard
parent 9e22949cec
commit 130c655e2f

View file

@ -1094,7 +1094,7 @@ static void on_draw_item(HWND hDlg, WPARAM wParam, LPARAM lParam)
HTHEME theme;
RECT buttonrect;
theme = OpenThemeData(draw_info->hwndItem, WC_BUTTONW);
theme = OpenThemeData(NULL, WC_BUTTONW);
if (theme) {
MARGINS margins;