mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fixed 1.8
This commit is contained in:
7
vendor/memcury.h
vendored
7
vendor/memcury.h
vendored
@@ -715,7 +715,7 @@
|
||||
return FindPatternEx(handle, pattern, mask, module, module + Memcury::PE::GetNTHeaders()->OptionalHeader.SizeOfImage);
|
||||
}
|
||||
|
||||
static auto FindPattern(const char* signature, bool bWarnIfNotFound = true) -> Scanner
|
||||
static auto FindPattern(const char* signature, bool bWarnIfNotFound = true, int skip = 0) -> Scanner
|
||||
{
|
||||
PE::Address add{ nullptr };
|
||||
|
||||
@@ -740,6 +740,11 @@
|
||||
|
||||
if (found)
|
||||
{
|
||||
if (skip > 0)
|
||||
{
|
||||
return FindPattern(signature, bWarnIfNotFound, --skip);
|
||||
}
|
||||
|
||||
add = reinterpret_cast<uintptr_t>(&scanBytes[i]);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user