mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[REGEDIT]
- Fix a handle leak. Patch by Edijs Kolesnikovičs. CORE-6853 #resolve svn path=/trunk/; revision=58069
This commit is contained in:
parent
bef50fc841
commit
d82df6ac05
1 changed files with 35 additions and 39 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue