Skip to content

Commit

Permalink
fix crashes when copying disassembler code and the disassembler was a…
Browse files Browse the repository at this point in the history
…ctively used
  • Loading branch information
cheatengine@gmail.com committed May 19, 2014
1 parent d431b5a commit e9ddacd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cheat Engine/savedisassemblyfrm.pas
Expand Up @@ -73,6 +73,7 @@ procedure TSaveDisassemblyThread.execute;
mi: TModuleInfo;

disassembler: TDisassembler;
desc: string;

addresslength: integer;
begin
Expand Down Expand Up @@ -102,7 +103,7 @@ procedure TSaveDisassemblyThread.execute;
while (not terminated) and (currentaddress<=stopaddress) do
begin
oldaddress:=currentaddress;
temps2:=disassemble(currentaddress); //contains the addresspart, bytepart and opcode part
temps2:=disassembler.disassemble(currentaddress, desc); //contains the addresspart, bytepart and opcode part
splitDisassembledString(temps2,true,addresspart,bytepart,opcodepart,specialpart);

if disassembler.showsymbols then
Expand Down

0 comments on commit e9ddacd

Please sign in to comment.