[MSI] Do not leak rootkey

This commit is contained in:
Mark Jansen
2019-02-18 23:00:54 +01:00
parent d766391231
commit 2fade6ede4
+1
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;
}