Author: cwittich
Date: Tue Apr 14 07:47:43 2015
New Revision: 67190
URL:
http://svn.reactos.org/svn/reactos?rev=67190&view=rev
Log:
[CHARMAP]
fix a resource leak
Modified:
trunk/reactos/base/applications/charmap/settings.c
Modified: trunk/reactos/base/applications/charmap/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/charmap/…
==============================================================================
--- trunk/reactos/base/applications/charmap/settings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/charmap/settings.c [iso-8859-1] Tue Apr 14 07:47:43
2015
@@ -116,6 +116,7 @@
if (RegCreateKey(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS)
{
+ RegCloseKey(hKey);
if (RegOpenKeyEx(HKEY_CURRENT_USER, g_szGeneralRegKey, 0, KEY_SET_VALUE,
&hKey) == ERROR_SUCCESS)
{
TCHAR szBuffer[MAX_PATH];