fix: correctly persist sigged jmp calls

This commit is contained in:
goaaats 2022-06-20 18:14:35 +02:00
parent ea2277ae8f
commit fee4b1c32a
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 3 additions and 3 deletions

View file

@ -155,7 +155,7 @@ namespace Dalamud.Injector
} }
catch (Exception ex) catch (Exception ex)
{ {
Log.Error(ex, "[NativeAclFix] Uncaught error during initialization, trying to kill process"); Log.Error(ex, "[GameStart] Uncaught error during initialization, trying to kill process");
try try
{ {
@ -163,7 +163,7 @@ namespace Dalamud.Injector
} }
catch (Exception killEx) catch (Exception killEx)
{ {
Log.Error(killEx, "[NativeAclFix] Could not kill process"); Log.Error(killEx, "[GameStart] Could not kill process");
} }
throw; throw;

View file

@ -320,7 +320,7 @@ namespace Dalamud.Game
var insnByte = Marshal.ReadByte(scanRet); var insnByte = Marshal.ReadByte(scanRet);
if (insnByte == 0xE8 || insnByte == 0xE9) if (insnByte == 0xE8 || insnByte == 0xE9)
return ReadJmpCallSig(scanRet); scanRet = ReadJmpCallSig(scanRet);
this.textCache?.Add(signature, scanRet.ToInt64() - this.Module.BaseAddress.ToInt64()); this.textCache?.Add(signature, scanRet.ToInt64() - this.Module.BaseAddress.ToInt64());