shell32: Use a smaller range of shellview menu IDs in our IContextMenu functions.
commit2b6458b75713cedc6cd28d2980298d6ac844757e
authorDamjan Jovanovic <damjan.jov@gmail.com>
Fri, 30 Apr 2021 05:39:24 +0000 (30 07:39 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 30 Apr 2021 20:59:50 +0000 (30 22:59 +0200)
treef3a76b3481e364e179a58fe24de81a4f63a9f1fc
parent42ecb0ec15f28ee0a5acc24d60c3bdb5416d71d0
shell32: Use a smaller range of shellview menu IDs in our IContextMenu functions.

The shellview menu IDs are very large, eg. FCIDM_SHVIEW_OPEN is 0x7102,
while applications want menu IDs to fit into a small range, eg. 1-1000 for
Explorer++. This causes our IContextMenu_QueryContextMenu() functions to
leave out most menu options. We should rebase our shellview menu ids
by -0x7000 so they occupy a smaller range.

This gets both Explorer++ and Double Commander to show the correct
right-click menus.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=24893
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/shell32/shlview_cmenu.c
dlls/shell32/tests/shlfolder.c