1
0
Fork 0

Fix GUI exceptions with massive traceexecute

This commit is contained in:
torusrxxx 2021-01-08 22:28:59 +08:00
parent 400964e876
commit 11c8f7e02a
No known key found for this signature in database
GPG Key ID: A795C73A0F1CFADD
2 changed files with 3 additions and 1 deletions

View File

@ -265,6 +265,8 @@ void TraceRecordManager::TraceExecuteRecord(const Zydis & newInstruction)
// Don't try to resolve memory values for invalid/lea/nop instructions
if(newInstruction.Success() && !newInstruction.IsNop() && newInstruction.GetId() != ZYDIS_MNEMONIC_LEA)
{
// This can happen when trace execute instruction is used, we need to fix that or something would go wrong with the GUI.
newContext.registers.regcontext.cip = newInstruction.Address();
DISASM_ARGTYPE argType;
duint value;
unsigned char memoryContent[memoryContentSize];

View File

@ -1331,7 +1331,7 @@ void TraceBrowser::parseFinishedSlot()
{
if(mTraceFile->isError())
{
SimpleErrorBox(this, tr("Error"), "Error when opening run trace file");
SimpleErrorBox(this, tr("Error"), tr("Error when opening run trace file"));
delete mTraceFile;
mTraceFile = nullptr;
setRowCount(0);