[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; HKEY hKey = NULL;
if (RegCreateKeyW(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS) if (RegCreateKeyW(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS)
{
if (RegOpenKeyW(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS)
{ {
RegistryBinaryConfig tConfig; RegistryBinaryConfig tConfig;
DWORD iBufferSize = sizeof(tConfig); DWORD iBufferSize = sizeof(tConfig);
@ -159,6 +157,4 @@ extern void SaveSettings(void)
RegCloseKey(hKey); RegCloseKey(hKey);
} }
} }
}
/* EOF */ /* EOF */