mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +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
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWST
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
invalid_theme:
|
invalid_theme:
|
||||||
|
*tf = NULL;
|
||||||
if(hTheme) FreeLibrary(hTheme);
|
if(hTheme) FreeLibrary(hTheme);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue