fixed changing registry value after name
Modified: trunk/reactos/subsys/system/regedit/listview.c
_____
Modified: trunk/reactos/subsys/system/regedit/listview.c
--- trunk/reactos/subsys/system/regedit/listview.c 2005-11-26
16:39:27 UTC (rev 19643)
+++ trunk/reactos/subsys/system/regedit/listview.c 2005-11-26
16:46:53 UTC (rev 19644)
@@ -456,6 +456,9 @@
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);
}
Show replies by date