mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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/>
|
/// <inheritdoc/>
|
||||||
public nint[] ScanAllText(string signature) => this.ScanAllText(signature, default).ToArray();
|
public nint[] ScanAllText(string signature) => this.ScanAllText(signature, CancellationToken.None).ToArray();
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public IEnumerable<nint> ScanAllText(string signature, CancellationToken cancellationToken)
|
public IEnumerable<nint> ScanAllText(string signature, CancellationToken cancellationToken)
|
||||||
|
|
@ -338,7 +338,7 @@ public class SigScanner : IDisposable, ISigScanner
|
||||||
{
|
{
|
||||||
cancellationToken.ThrowIfCancellationRequested();
|
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)
|
if (index < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue