From 3fd8a8f2095a0de132890423d8db8b994ac9c8ec Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 13 Nov 2017 13:49:20 +0300 Subject: [PATCH] uxtheme: Return NULL file handle on OpenThemeFile() failure. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/uxtheme/msstyles.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c index 16cfbf5f076..e471c3cc0c0 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; }