Jacek Caban : urlmon: Fix handle leak.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jul 18 05:13:28 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: d85110a31747b02a375cc339f2c7d2f83dcb6b82
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d85110a31747b02a375cc339f2c7d2f83dcb6b82
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Jul 17 21:22:27 2006 +0200
urlmon: Fix handle leak.
---
dlls/urlmon/sec_mgr.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c
index 1d02542..41a05b1 100644
--- a/dlls/urlmon/sec_mgr.c
+++ b/dlls/urlmon/sec_mgr.c
@@ -97,6 +97,7 @@ static HRESULT map_url_to_zone(LPCWSTR u
size = sizeof(DWORD);
res = RegQueryValueExW(hkey, schema, NULL, NULL, (PBYTE)zone, &size);
+ RegCloseKey(hkey);
if(res == ERROR_SUCCESS)
return S_OK;
@@ -108,6 +109,7 @@ static HRESULT map_url_to_zone(LPCWSTR u
size = sizeof(DWORD);
res = RegQueryValueExW(hkey, schema, NULL, NULL, (PBYTE)zone, &size);
+ RegCloseKey(hkey);
if(res == ERROR_SUCCESS)
return S_OK;
More information about the wine-cvs
mailing list