[PATCH] uxtheme: Return NULL file handle on OpenThemeFile() failure
Nikolay Sivov
nsivov at codeweavers.com
Mon Nov 13 04:49:20 CST 2017
Signed-off-by: Nikolay Sivov <nsivov at 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
More information about the wine-devel
mailing list