1
0
Fork 0

GUI: added check for valid memory address of thread entry

This commit is contained in:
Mr. eXoDia 2014-08-29 19:16:37 +02:00
parent cc162e4f99
commit 92da0ef734
1 changed files with 7 additions and 2 deletions

View File

@ -14,8 +14,13 @@ void ThreadView::contextMenuSlot(const QPoint & pos)
wMenu->addAction(mKillThread);
wMenu->addSeparator();
wMenu->addMenu(mSetPriority);
wMenu->addSeparator();
wMenu->addAction(mGoToThreadEntry);
bool ok;
ULONGLONG entry = getCellContent(getInitialSelection(), 2).toULongLong(&ok, 16);
if(ok && DbgMemIsValidReadPtr(entry))
{
wMenu->addSeparator();
wMenu->addAction(mGoToThreadEntry);
}
wMenu->addSeparator();
QMenu wCopyMenu("&Copy", this);
setupCopyMenu(&wCopyMenu);