1
0
Fork 0

GUI: don't highlight an invalid memory address CIP

This commit is contained in:
mrexodia 2016-07-12 02:22:23 +02:00
parent b9d7c865ec
commit 1d9585e5f4
No known key found for this signature in database
GPG Key ID: D72F9A4FAA0073B4
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ QString Disassembly::paintContent(QPainter* painter, dsint rowBase, int rowOffse
QString addrText = getAddrText(cur_addr, label);
BPXTYPE bpxtype = DbgGetBpxTypeAt(cur_addr);
bool isbookmark = DbgGetBookmarkAt(cur_addr);
if(mInstBuffer.at(rowOffset).rva == mCipRva && !mIsRunning) //cip + not running
if(mInstBuffer.at(rowOffset).rva == mCipRva && !mIsRunning && DbgMemFindBaseAddr(DbgValFromString("cip"), nullptr)) //cip + not running + valid cip
{
painter->fillRect(QRect(x, y, w, h), QBrush(mCipBackgroundColor));
if(!isbookmark) //no bookmark