[PATCH 1/5] regedit: Fix handling of 'Copy Key Name' menu items

Hugh McMaster hugh.mcmaster at outlook.com
Thu Jun 1 04:32:48 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/framewnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 0aec59a..6930d7a 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -158,7 +158,7 @@ static void update_copy_keyname_item(HMENU hMenu, WCHAR *keyName)
 {
     unsigned int state = MF_ENABLED;
 
-    if (!g_pChildWnd->nFocusPanel && !keyName)
+    if (!keyName)
         state = MF_GRAYED;
 
     EnableMenuItem(hMenu, ID_EDIT_COPYKEYNAME, state | MF_BYCOMMAND);
-- 
2.7.4




More information about the wine-patches mailing list