mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SHELL32] Fix CDefaultContextMenu DFM_MERGECONTEXTMENU handling
This commit is contained in:
parent
6a1f287820
commit
9efa7cc498
1 changed files with 4 additions and 3 deletions
|
@ -433,7 +433,7 @@ CDefaultContextMenu::AddShellExtensionsToMenu(HMENU hMenu, UINT* pIndexMenu, UIN
|
|||
if (SUCCEEDED(hr))
|
||||
{
|
||||
info.iIdCmdFirst = cIds;
|
||||
info.NumIds = LOWORD(hr);
|
||||
info.NumIds = HRESULT_CODE(hr);
|
||||
(*pIndexMenu) += info.NumIds;
|
||||
|
||||
cIds += info.NumIds;
|
||||
|
@ -646,8 +646,9 @@ CDefaultContextMenu::QueryContextMenu(
|
|||
QCMINFO qcminfo = {hMenu, IndexMenu, idCmdNext, idCmdLast, NULL};
|
||||
if (SUCCEEDED(_DoCallback(DFM_MERGECONTEXTMENU, uFlags, &qcminfo)))
|
||||
{
|
||||
cIds += qcminfo.idCmdFirst;
|
||||
IndexMenu += qcminfo.idCmdFirst;
|
||||
UINT added = idCmdNext - (idCmdFirst + cIds);
|
||||
cIds += added;
|
||||
IndexMenu += added;
|
||||
m_iIdCBFirst = m_iIdSHELast;
|
||||
m_iIdCBLast = cIds;
|
||||
idCmdNext = idCmdFirst + cIds;
|
||||
|
|
Loading…
Reference in a new issue