mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-08 20:03:04 +08:00
check return value of MSG_INITMENU
This commit is contained in:
@@ -1795,7 +1795,8 @@ static int dskStartTrackPopupMenu (PTRACKMENUINFO ptmi)
|
||||
ptmi->prev = NULL;
|
||||
}
|
||||
|
||||
PopupMenuTrackProc (ptmi, MSG_INITMENU, 0, 0);
|
||||
if (PopupMenuTrackProc (ptmi, MSG_INITMENU, 0, 0))
|
||||
return -1;
|
||||
|
||||
if (mgIsServer)
|
||||
ptmi->idx_znode = srvStartTrackPopupMenu (0, &ptmi->rc, (HWND)ptmi);
|
||||
|
||||
Reference in New Issue
Block a user