shlwapi: Close the correct key in SHRegCloseUSKey.
This commit is contained in:
parent
82d07c4051
commit
3a55f964b9
|
@ -200,7 +200,7 @@ LONG WINAPI SHRegCloseUSKey(
|
||||||
if (hKey->HKLMkey)
|
if (hKey->HKLMkey)
|
||||||
ret = RegCloseKey(hKey->HKLMkey);
|
ret = RegCloseKey(hKey->HKLMkey);
|
||||||
if (hKey->HKLMstart && hKey->HKLMstart != HKEY_LOCAL_MACHINE)
|
if (hKey->HKLMstart && hKey->HKLMstart != HKEY_LOCAL_MACHINE)
|
||||||
ret = RegCloseKey(hKey->HKCUstart);
|
ret = RegCloseKey(hKey->HKLMstart);
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, hKey);
|
HeapFree(GetProcessHeap(), 0, hKey);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue