Nikolay Sivov : uxtheme: Return NULL file handle on OpenThemeFile() failure.
Alexandre Julliard
julliard at winehq.org
Mon Nov 13 16:24:18 CST 2017
Module: wine
Branch: master
Commit: 3fd8a8f2095a0de132890423d8db8b994ac9c8ec
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fd8a8f2095a0de132890423d8db8b994ac9c8ec
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Nov 13 13:49:20 2017 +0300
uxtheme: Return NULL file handle on OpenThemeFile() failure.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/uxtheme/msstyles.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c
index 16cfbf5..e471c3c 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;
}
More information about the wine-cvs
mailing list