mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
fixed changing registry value after name
svn path=/trunk/; revision=19644
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user