Chris Robinson : mshtml: Fix hkey leak.

Alexandre Julliard julliard at winehq.org
Fri Nov 2 08:10:21 CDT 2007


Module: wine
Branch: master
Commit: bc9b8d82e97ee1e78116e1b0e23b8e1886cc0495
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc9b8d82e97ee1e78116e1b0e23b8e1886cc0495

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Thu Nov  1 12:02:02 2007 -0700

mshtml: Fix hkey leak.

---

 dlls/mshtml/install.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c
index a131da6..c4404a7 100644
--- a/dlls/mshtml/install.c
+++ b/dlls/mshtml/install.c
@@ -147,6 +147,7 @@ static void set_registry(LPCSTR install_dir)
 
     res = RegSetValueExW(hkey, wszVersion, 0, REG_SZ, (LPVOID)wszIEVersion,
                          sizeof(wszIEVersion));
+    RegCloseKey(hkey);
     if(res != ERROR_SUCCESS) {
         ERR("Failed to set Version value: %d\n", res);
         return;




More information about the wine-cvs mailing list