Debugger: Fix bounds warnings in debug mode.
Technically these were accessing outside the container.
This commit is contained in:
parent
9d96e6579c
commit
4232ef59b4
2 changed files with 2 additions and 2 deletions
|
@ -880,7 +880,7 @@ void CtrlStateValues::OnRightClick(int row, int column, const POINT &point) {
|
|||
SetMenuDefaultItem(subMenu, ID_REGLIST_CHANGE, FALSE);
|
||||
|
||||
// Ehh, kinda ugly.
|
||||
if (rows_ == &watchList[0]) {
|
||||
if (!watchList.empty() && rows_ == &watchList[0]) {
|
||||
ModifyMenu(subMenu, ID_GEDBG_WATCH, MF_BYCOMMAND | MF_STRING, ID_GEDBG_WATCH, L"Remove Watch");
|
||||
} else {
|
||||
ModifyMenu(subMenu, ID_GEDBG_WATCH, MF_BYCOMMAND | MF_STRING, ID_GEDBG_WATCH, L"Add Watch");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue