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>
stable
Mark Jansen 2019-02-17 16:52:46 +01:00 committed by Alexandre Julliard
parent 88399dee3f
commit c91f254a77
1 changed files with 1 additions and 0 deletions

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