Commit fb518192 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wintrust: Don't close key if RegOpenKeyExW failed.

parent a45eb807
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment