[PATCH] uxtheme: Fix double free on registry key handle.

Nikolay Sivov nsivov at codeweavers.com
Sun Apr 24 03:42:22 CDT 2022


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52704
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/uxtheme/system.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c
index 908451f0fe8..05b86e40b1a 100644
--- a/dlls/uxtheme/system.c
+++ b/dlls/uxtheme/system.c
@@ -127,7 +127,6 @@ static DWORD query_reg_path (HKEY hKey, LPCWSTR lpszValue,
     }
   }
 
-  RegCloseKey(hKey);
   return dwRet;
 }
 
-- 
2.35.1




More information about the wine-devel mailing list