[PATCH] uxtheme: Return NULL file handle on OpenThemeFile() failure
13 Nov
2017
13 Nov
'17
10:49 a.m.
Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- dlls/uxtheme/msstyles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c index 16cfbf5f07..e471c3cc0c 100644 --- a/dlls/uxtheme/msstyles.c +++ b/dlls/uxtheme/msstyles.c @@ -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; } -- 2.15.0
3042
Age (days ago)
3042
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov