Module: wine Branch: master Commit: 3a55f964b9a2204bb94a08855d0d5374b0699af4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a55f964b9a2204bb94a08855d... Author: Aric Stewart <aric(a)codeweavers.com> Date: Thu Dec 3 14:04:20 2009 -0600 shlwapi: Close the correct key in SHRegCloseUSKey. --- dlls/shlwapi/reg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/reg.c b/dlls/shlwapi/reg.c index c6fa2c7..9f652c9 100644 --- a/dlls/shlwapi/reg.c +++ b/dlls/shlwapi/reg.c @@ -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;