mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 05:52:15 +00:00
regedit: Allow renaming of values in root keys.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
parent
0a10bfc8b1
commit
ab03ecf7bc
|
@ -946,9 +946,10 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
case ID_EDIT_RENAME:
|
case ID_EDIT_RENAME:
|
||||||
{
|
{
|
||||||
WCHAR* keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot);
|
WCHAR* keyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot);
|
||||||
if (keyPath == 0 || *keyPath == 0) {
|
if (!keyPath) {
|
||||||
MessageBeep(MB_ICONHAND);
|
MessageBeep(MB_ICONHAND);
|
||||||
} else if (GetFocus() == g_pChildWnd->hTreeWnd) {
|
break;
|
||||||
|
} else if (*keyPath && GetFocus() == g_pChildWnd->hTreeWnd) {
|
||||||
StartKeyRename(g_pChildWnd->hTreeWnd);
|
StartKeyRename(g_pChildWnd->hTreeWnd);
|
||||||
} else if (GetFocus() == g_pChildWnd->hListWnd) {
|
} else if (GetFocus() == g_pChildWnd->hListWnd) {
|
||||||
StartValueRename(g_pChildWnd->hListWnd);
|
StartValueRename(g_pChildWnd->hListWnd);
|
||||||
|
|
Loading…
Reference in a new issue