fixed changing registry value after name

svn path=/trunk/; revision=19644
This commit is contained in:
Sebastian Gasiorek 2005-11-26 16:46:53 +00:00
parent 80ffb9c7c9
commit aad3fdde87

View file

@ -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);
}