1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

Taskbar11: Load the classic context menu from EP's taskbar implementation if the context menu does not exist in explorer.exe ^2

This commit is contained in:
Amrsatrio 2024-07-31 02:32:10 +07:00
parent bfca879e68
commit e60c5ff596

View File

@ -2006,7 +2006,7 @@ INT64 Shell_TrayWndSubclassProc(
pt.y = GET_Y_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam);
HMENU hMenu = LoadMenuW(GetModuleHandleW(NULL), MAKEINTRESOURCEW(205)); HMENU hMenu = LoadMenuW(GetModuleHandleW(NULL), MAKEINTRESOURCEW(205));
if (!hMenu) if (!hMenu && g_hMyTaskbar)
{ {
hMenu = LoadMenuW(g_hMyTaskbar, MAKEINTRESOURCEW(205)); hMenu = LoadMenuW(g_hMyTaskbar, MAKEINTRESOURCEW(205));
} }