1
0
Fork 0

GUI: don't try reading the first byte of a memory region in HexDump

This commit is contained in:
Duncan Ogilvie 2017-12-28 23:26:13 +01:00
parent 2d6004da9b
commit 3e510440d2
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 2 deletions

View File

@ -115,8 +115,7 @@ void HexDump::printDumpAt(dsint parVA, bool select, bool repaint, bool updateTab
{
duint wSize;
auto wBase = DbgMemFindBaseAddr(parVA, &wSize); //get memory base
unsigned char test;
if(!wBase || !wSize || !DbgMemRead(wBase, &test, sizeof(test)))
if(!wBase || !wSize)
return;
dsint wRVA = parVA - wBase; //calculate rva
int wBytePerRowCount = getBytePerRowCount(); //get the number of bytes per row