wintrust: Don't close key if RegOpenKeyExW failed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a45eb80790
commit
fb518192bb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue