mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix: correctly persist sigged jmp calls
This commit is contained in:
parent
ea2277ae8f
commit
fee4b1c32a
2 changed files with 3 additions and 3 deletions
|
|
@ -155,7 +155,7 @@ namespace Dalamud.Injector
|
|||
}
|
||||
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
|
||||
{
|
||||
|
|
@ -163,7 +163,7 @@ namespace Dalamud.Injector
|
|||
}
|
||||
catch (Exception killEx)
|
||||
{
|
||||
Log.Error(killEx, "[NativeAclFix] Could not kill process");
|
||||
Log.Error(killEx, "[GameStart] Could not kill process");
|
||||
}
|
||||
|
||||
throw;
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ namespace Dalamud.Game
|
|||
var insnByte = Marshal.ReadByte(scanRet);
|
||||
|
||||
if (insnByte == 0xE8 || insnByte == 0xE9)
|
||||
return ReadJmpCallSig(scanRet);
|
||||
scanRet = ReadJmpCallSig(scanRet);
|
||||
|
||||
this.textCache?.Add(signature, scanRet.ToInt64() - this.Module.BaseAddress.ToInt64());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue