diff --git a/PowerEditor/src/WinControls/shortcut/shortcut.cpp b/PowerEditor/src/WinControls/shortcut/shortcut.cpp index 1b96f63b..30b002b1 100644 --- a/PowerEditor/src/WinControls/shortcut/shortcut.cpp +++ b/PowerEditor/src/WinControls/shortcut/shortcut.cpp @@ -529,6 +529,8 @@ void Accelerator::updateFullMenu() { void Accelerator::updateMenuItemByCommand(CommandShortcut csc) { int cmdID = (int)csc.getID(); + MENUITEMINFO cmdMII; + ::GetMenuItemInfo(_hAccelMenu, cmdID, MF_BYCOMMAND, &cmdMII); ::ModifyMenu(_hAccelMenu, cmdID, MF_BYCOMMAND, cmdID, csc.toMenuItemString().c_str()); }