Jacek Caban : wintrust: Don't close key if RegOpenKeyExW failed.
Alexandre Julliard
julliard at winehq.org
Mon Oct 17 19:03:46 CDT 2016
Module: wine
Branch: master
Commit: fb518192bb6f8d5f9ae07bbaf0b84678ca933f89
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb518192bb6f8d5f9ae07bbaf0b84678ca933f89
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Oct 17 19:32:07 2016 +0200
wintrust: Don't close key if RegOpenKeyExW failed.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wintrust/register.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wintrust/register.c b/dlls/wintrust/register.c
index b9a7559..effe9d1 100644
--- a/dlls/wintrust/register.c
+++ b/dlls/wintrust/register.c
@@ -811,7 +811,7 @@ static FARPROC WINTRUST_ReadProviderFromReg(WCHAR *GuidString, const WCHAR *Func
lstrcatW(ProvKey, GuidString);
Res = RegOpenKeyExW(HKEY_LOCAL_MACHINE, ProvKey, 0, KEY_READ, &Key);
- if (Res != ERROR_SUCCESS) goto error_close_key;
+ if (Res != ERROR_SUCCESS) return NULL;
/* Read the $DLL entry */
Size = sizeof(DllName);
More information about the wine-cvs
mailing list