mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fix issue in SigScanner.
This commit is contained in:
parent
7bf79bdea6
commit
9032511a5c
1 changed files with 2 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ public class SigScanner : IDisposable, ISigScanner
|
|||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public nint[] ScanAllText(string signature) => this.ScanAllText(signature, default).ToArray();
|
||||
public nint[] ScanAllText(string signature) => this.ScanAllText(signature, CancellationToken.None).ToArray();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IEnumerable<nint> 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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue