From fb518192bb6f8d5f9ae07bbaf0b84678ca933f89 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 17 Oct 2016 19:32:07 +0200 Subject: [PATCH] wintrust: Don't close key if RegOpenKeyExW failed. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- 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 b9a755992df..effe9d18f20 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);