mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[SHELL32] CDefaultContextMenu: Fix starting applications with just one 'static' menu item.
svn path=/trunk/; revision=73758
This commit is contained in:
@@ -675,7 +675,9 @@ CDefaultContextMenu::QueryContextMenu(
|
||||
|
||||
/* Add static context menu handlers */
|
||||
IndexMenu = AddStaticContextMenusToMenu(hMenu, IndexMenu, idCmdNext, idCmdLast);
|
||||
if (m_iIdSCMLast && m_iIdSCMFirst != m_iIdSCMLast)
|
||||
if (m_iIdSCMLast && m_iIdSCMFirst > m_iIdSCMLast)
|
||||
m_iIdSCMLast = m_iIdSCMFirst = 0;
|
||||
else if (m_iIdSCMLast)
|
||||
idCmdNext = m_iIdSCMLast + 1;
|
||||
|
||||
/* Add dynamic context menu handlers */
|
||||
|
||||
Reference in New Issue
Block a user