Browse Source

Corrected size checks in new FindPattern.

pull/45/head
atom0s 7 years ago
parent
commit
a3009054a7
  1. BIN
      Ashita.dll
  2. BIN
      injector.exe
  3. 4
      plugins/ADK/AS_Memory.h

BIN
Ashita.dll

Binary file not shown.

BIN
injector.exe

Binary file not shown.

4
plugins/ADK/AS_Memory.h

@ -185,13 +185,13 @@ namespace Ashita @@ -185,13 +185,13 @@ namespace Ashita
return 0;
// Walk the pattern and match its data..
for (size_t y = 0; y < psize - 1; y++)
for (size_t y = 0; y < psize; y++)
{
if (y == pstart || vpattern[y].second != true)
continue;
if (data[x - pstart + y] != vpattern[y].first)
break;
if (y + 1 == psize - 1)
if (y + 1 == psize)
matches.insert(matches.begin(), (uintptr_t)(data + (x - pstart)) + offset);
}
}

Loading…
Cancel
Save