Debugger: Fix submenu offsets from removing unused.

The wrong menus were showing in several places, especially the GE
debugger.
This commit is contained in:
Unknown W. Brackets committed 2021-10-07 07:04:33 -07:00
1 parent 7dde8ef9f3
commit 58238abef5
7 files changed
+14 -9

No files matched your search

+3 -1
View File
@@ -29,6 +29,7 @@
#include <set>
TCHAR CtrlDisAsmView::szClassName[] = _T("CtrlDisAsmView");
constexpr int POPUP_SUBMENU_ID_DISASM = 1;
extern HMENU g_hPopupMenus;
void CtrlDisAsmView::init()
@@ -929,7 +930,8 @@ void CtrlDisAsmView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
//popup menu?
POINT pt;
GetCursorPos(&pt);
switch(TrackPopupMenuEx(GetSubMenu(g_hPopupMenus,1),TPM_RIGHTBUTTON|TPM_RETURNCMD,pt.x,pt.y,wnd,0))
HMENU menu = GetSubMenu(g_hPopupMenus, POPUP_SUBMENU_ID_DISASM);
switch (TrackPopupMenuEx(menu, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, wnd, 0))
{
case ID_DISASM_GOTOINMEMORYVIEW:
SendMessage(GetParent(wnd),WM_DEB_GOTOHEXEDIT,curAddress,0);