regedit: Fix handling of 'Copy Key Name' menu items.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-06-01 09:32:48 +00:00 committed by Alexandre Julliard
parent 53a95d4104
commit 898ee58aa0
1 changed files with 1 additions and 1 deletions

View File

@ -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);