mshtml: Fix hkey leak.
This commit is contained in:
parent
ff47878863
commit
bc9b8d82e9
|
@ -147,6 +147,7 @@ static void set_registry(LPCSTR install_dir)
|
||||||
|
|
||||||
res = RegSetValueExW(hkey, wszVersion, 0, REG_SZ, (LPVOID)wszIEVersion,
|
res = RegSetValueExW(hkey, wszVersion, 0, REG_SZ, (LPVOID)wszIEVersion,
|
||||||
sizeof(wszIEVersion));
|
sizeof(wszIEVersion));
|
||||||
|
RegCloseKey(hkey);
|
||||||
if(res != ERROR_SUCCESS) {
|
if(res != ERROR_SUCCESS) {
|
||||||
ERR("Failed to set Version value: %d\n", res);
|
ERR("Failed to set Version value: %d\n", res);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue