mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[MSI] Do not leak rootkey
This commit is contained in:
@@ -98,6 +98,7 @@ static UINT OpenSourceKey(LPCWSTR szProduct, HKEY* key, DWORD dwOptions,
|
||||
if (rc != ERROR_SUCCESS)
|
||||
rc = ERROR_BAD_CONFIGURATION;
|
||||
}
|
||||
RegCloseKey(rootkey);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user