[SHELL32] Fix menu item handling

This restores the 'properties' functionality on the desktop
Bug found by Hervé Poussineau
This commit is contained in:
Mark Jansen 2022-10-16 00:51:19 +02:00
parent 7b33915adc
commit 5bd86b8487
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
2 changed files with 3 additions and 3 deletions

View file

@ -646,7 +646,7 @@ CDefaultContextMenu::QueryContextMenu(
QCMINFO qcminfo = {hMenu, IndexMenu, idCmdNext, idCmdLast, NULL};
if (SUCCEEDED(_DoCallback(DFM_MERGECONTEXTMENU, uFlags, &qcminfo)))
{
UINT added = idCmdNext - (idCmdFirst + cIds);
UINT added = qcminfo.idCmdFirst - idCmdNext;
cIds += added;
IndexMenu += added;
m_iIdCBFirst = m_iIdSHELast;