mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 22:02:18 +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;
|
LONG lResult;
|
||||||
keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot);
|
keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot);
|
||||||
lResult = RegRenameValue(hKeyRoot, keyPath, Info->item.pszText, lineinfo->name);
|
lResult = RegRenameValue(hKeyRoot, keyPath, Info->item.pszText, lineinfo->name);
|
||||||
|
if (lineinfo->name)
|
||||||
|
LocalFree(lineinfo->name);
|
||||||
|
lineinfo->name = _tcsdup(Info->item.pszText);
|
||||||
*Result = TRUE;
|
*Result = TRUE;
|
||||||
return (lResult == ERROR_SUCCESS);
|
return (lResult == ERROR_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue