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)
|
||||
ret = RegCloseKey(hKey->HKLMkey);
|
||||
if (hKey->HKLMstart && hKey->HKLMstart != HKEY_LOCAL_MACHINE)
|
||||
ret = RegCloseKey(hKey->HKCUstart);
|
||||
ret = RegCloseKey(hKey->HKLMstart);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, hKey);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue