From ad02fda97988a5896eb09fb823352692a27480db Mon Sep 17 00:00:00 2001 From: Jose Carlos Jesus Date: Sun, 14 May 2023 17:39:12 -0400 Subject: [PATCH] [REGEDIT] Disable the New Key meni item for My Computer. --- base/applications/regedit/treeview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/applications/regedit/treeview.c b/base/applications/regedit/treeview.c index 237e706d962..e4ae38d663d 100644 --- a/base/applications/regedit/treeview.c +++ b/base/applications/regedit/treeview.c @@ -656,8 +656,9 @@ BOOL TreeWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result) UpdateAddress(pnmtv->itemNew.hItem, NULL, NULL, TRUE); - /* Disable the Permissions menu item for 'My Computer' */ + /* Disable the Permissions and new key menu items for 'My Computer' */ EnableMenuItem(hMenuFrame, ID_EDIT_PERMISSIONS, MF_BYCOMMAND | (hParentItem ? MF_ENABLED : MF_GRAYED)); + EnableMenuItem(hMenuFrame, ID_EDIT_NEW_KEY, MF_BYCOMMAND | (hParentItem ? MF_ENABLED : MF_GRAYED)); /* * Disable Delete/Rename menu options for 'My Computer' (first item so doesn't have any parent) -- 2.36.1.windows.1