mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 18:13:38 +00:00
uxtheme: Return NULL file handle on OpenThemeFile() failure.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ed7513f9c2
commit
3fd8a8f209
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue