msi: Do not leak rootkey.
Signed-off-by: Mark Jansen <mark.jansen@reactos.org> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
88399dee3f
commit
c91f254a77
|
@ -98,6 +98,7 @@ static UINT OpenSourceKey(LPCWSTR szProduct, HKEY* key, DWORD dwOptions,
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
rc = ERROR_BAD_CONFIGURATION;
|
rc = ERROR_BAD_CONFIGURATION;
|
||||||
}
|
}
|
||||||
|
RegCloseKey(rootkey);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue