mirror of
https://github.com/reactos/reactos.git
synced 2024-08-24 12:18:57 +00:00
fixed changing registry value after name
svn path=/trunk/; revision=19644
This commit is contained in:
parent
80ffb9c7c9
commit
aad3fdde87
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue