Commit 3a55f964 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

shlwapi: Close the correct key in SHRegCloseUSKey.

parent 82d07c40
...@@ -200,7 +200,7 @@ LONG WINAPI SHRegCloseUSKey( ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment