Nikolay Sivov : uxtheme: Fix double free on registry key handle.

Alexandre Julliard julliard at winehq.org
Mon Apr 25 16:30:31 CDT 2022


Module: wine
Branch: master
Commit: 28d572aa14300b7452f491e2a6b53b4e1ad9a104
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=28d572aa14300b7452f491e2a6b53b4e1ad9a104

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Apr 24 11:42:22 2022 +0300

uxtheme: Fix double free on registry key handle.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52704
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 }
 




More information about the wine-cvs mailing list