shell_integration: Remove the incorrect usage of the MIIM_BITMAP flag
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 12 Mar 2015 13:58:54 +0000 (14:58 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Thu, 12 Mar 2015 14:22:29 +0000 (15:22 +0100)
This flag should only be specified if the hbmpItem member of the
MENUITEMINFO has been set.

shell_integration/windows/OCContextMenu/OCContextMenu.cpp

index 14cb1b65e5255324ed2eab04d610ed03d47f8b0d..43aede242d1906f7ac2b3350125ab29c61337633 100644 (file)
@@ -168,7 +168,7 @@ IFACEMETHODIMP OCContextMenu::QueryContextMenu(HMENU hMenu, UINT indexMenu, UINT
 
        assert(!info.shareMenuTitle.empty());
        MENUITEMINFO mii = { sizeof(mii) };
-       mii.fMask = MIIM_BITMAP | MIIM_STRING | MIIM_FTYPE | MIIM_ID | MIIM_STATE;
+       mii.fMask = MIIM_STRING | MIIM_FTYPE | MIIM_ID | MIIM_STATE;
        mii.wID = idCmdFirst + IDM_SHARE;
        mii.fType = MFT_STRING;
        mii.dwTypeData = &info.shareMenuTitle[0];