shlwapi: Close the correct key in SHRegCloseUSKey.

This commit is contained in:
Aric Stewart 2009-12-03 14:04:20 -06:00 committed by Alexandre Julliard
parent 82d07c4051
commit 3a55f964b9
1 changed files with 1 additions and 1 deletions

View File

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