Commit 3fd8a8f2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

uxtheme: Return NULL file handle on OpenThemeFile() failure.

parent ed7513f9
......@@ -188,6 +188,7 @@ HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWST
return S_OK;
invalid_theme:
*tf = NULL;
if(hTheme) FreeLibrary(hTheme);
return hr;
}
......
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