From aad3fdde87771d548c467ce40c796f11096f4cf4 Mon Sep 17 00:00:00 2001 From: Sebastian Gasiorek Date: Sat, 26 Nov 2005 16:46:53 +0000 Subject: [PATCH] fixed changing registry value after name svn path=/trunk/; revision=19644 --- reactos/subsys/system/regedit/listview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/subsys/system/regedit/listview.c b/reactos/subsys/system/regedit/listview.c index bc4a4a43f9a..3e583f880df 100644 --- a/reactos/subsys/system/regedit/listview.c +++ b/reactos/subsys/system/regedit/listview.c @@ -456,6 +456,9 @@ BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result) LONG lResult; keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot); lResult = RegRenameValue(hKeyRoot, keyPath, Info->item.pszText, lineinfo->name); + if (lineinfo->name) + LocalFree(lineinfo->name); + lineinfo->name = _tcsdup(Info->item.pszText); *Result = TRUE; return (lResult == ERROR_SUCCESS); }