[MSI] Do not leak rootkey

This commit is contained in:
Mark Jansen
2019-02-17 20:46:24 +01:00
parent d766391231
commit 2fade6ede4

View File

@@ -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;
}