Commit d219a54e authored by Frank Richter's avatar Frank Richter Committed by Alexandre Julliard

Since OpenThemeData() should return 0 in case theming is disabled

globally or for the application we don't need to check that when calling OpenThemeData().
parent 4641cb8d
......@@ -1320,7 +1320,6 @@ HEADER_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
TEXTMETRICW tm;
HFONT hOldFont;
HDC hdc;
BOOL themingActive = IsAppThemed() && IsThemeActive();
infoPtr = (HEADER_INFO *)Alloc (sizeof(HEADER_INFO));
SetWindowLongPtrW (hwnd, 0, (DWORD_PTR)infoPtr);
......@@ -1350,7 +1349,7 @@ HEADER_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
SelectObject (hdc, hOldFont);
ReleaseDC (0, hdc);
if (themingActive) OpenThemeData(hwnd, themeClass);
OpenThemeData(hwnd, themeClass);
return 0;
}
......
......@@ -7516,7 +7516,6 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
LISTVIEW_INFO *infoPtr;
UINT uView = lpcs->style & LVS_TYPEMASK;
LOGFONTW logFont;
BOOL themingActive = IsAppThemed() && IsThemeActive();
TRACE("(lpcs=%p)\n", lpcs);
......@@ -7599,7 +7598,7 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
}
}
if (themingActive) OpenThemeData(hwnd, themeClass);
OpenThemeData(hwnd, themeClass);
return 0;
......
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