mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 19:27:00 +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;
|
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 */
|
||||||
|
|
Loading…
Reference in a new issue