[REGEDIT]

- Fix a handle leak. Patch by Edijs Kolesnikovičs.
CORE-6853 #resolve

svn path=/trunk/; revision=58069
This commit is contained in:
Thomas Faber 2012-12-31 17:10:15 +00:00
parent bef50fc841
commit d82df6ac05

View file

@ -115,8 +115,6 @@ extern void SaveSettings(void)
HKEY hKey = NULL;
if (RegCreateKeyW(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS)
{
if (RegOpenKeyW(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS)
{
RegistryBinaryConfig tConfig;
DWORD iBufferSize = sizeof(tConfig);
@ -158,7 +156,5 @@ extern void SaveSettings(void)
RegCloseKey(hKey);
}
}
}
/* EOF */