diff --git a/Dalamud/Game/SigScanner.cs b/Dalamud/Game/SigScanner.cs index 67f4f563e..c8a371aee 100644 --- a/Dalamud/Game/SigScanner.cs +++ b/Dalamud/Game/SigScanner.cs @@ -326,7 +326,7 @@ public class SigScanner : IDisposable, ISigScanner } /// - public nint[] ScanAllText(string signature) => this.ScanAllText(signature, default).ToArray(); + public nint[] ScanAllText(string signature) => this.ScanAllText(signature, CancellationToken.None).ToArray(); /// public IEnumerable ScanAllText(string signature, CancellationToken cancellationToken) @@ -338,7 +338,7 @@ public class SigScanner : IDisposable, ISigScanner { cancellationToken.ThrowIfCancellationRequested(); - var index = IndexOf(mBase, this.TextSectionSize, needle, mask, badShift); + var index = IndexOf(mBase, this.TextSectionSize - (int)(mBase - this.TextSectionBase), needle, mask, badShift); if (index < 0) break;