GUI: don't try reading the first byte of a memory region in HexDump
This commit is contained in:
parent
2d6004da9b
commit
3e510440d2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue