mshtml: Fix hkey leak.

This commit is contained in:
Chris Robinson 2007-11-01 12:02:02 -07:00 committed by Alexandre Julliard
parent ff47878863
commit bc9b8d82e9
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ static void set_registry(LPCSTR install_dir)
res = RegSetValueExW(hkey, wszVersion, 0, REG_SZ, (LPVOID)wszIEVersion,
sizeof(wszIEVersion));
RegCloseKey(hkey);
if(res != ERROR_SUCCESS) {
ERR("Failed to set Version value: %d\n", res);
return;