mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Fix issue in SigScanner. (#2425)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
1073227b83
commit
1ae7de26bf
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