Author: mjansen
Date: Wed Feb 8 22:24:47 2017
New Revision: 73758
URL:
http://svn.reactos.org/svn/reactos?rev=73758&view=rev
Log:
[SHELL32] CDefaultContextMenu: Fix starting applications with just one 'static'
menu item.
Modified:
trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp
Modified: trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CDefault…
==============================================================================
--- trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp [iso-8859-1] Wed Feb 8
22:24:47 2017
@@ -675,7 +675,9 @@
/* 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 */