Skip to content

Commit 773b324

Browse files
committed
DBG: fixed a bug in DbgDisasmFastAt
1 parent 9fc99e1 commit 773b324

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x64_dbg_dbg/_exports.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,8 @@ extern "C" DLL_EXPORT uint _dbg_sendmessage(DBGMSG type, void* param1, void* par
739739
disasm.EIP = (UIntPtr)data;
740740
disasm.VirtualAddr = (UInt64)param1;
741741
int len = Disasm(&disasm);
742+
if(len == UNKNOWN_OPCODE)
743+
len = 1;
742744
uint i = 0;
743745
BASIC_INSTRUCTION_INFO* basicinfo = (BASIC_INSTRUCTION_INFO*)param2;
744746
fillbasicinfo(&disasm, basicinfo);

0 commit comments

Comments
 (0)