mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-08 19:08:35 +00:00
Fixed intermittent crash when looking for an invalid signature (bug 5301, r=fyren).
This commit is contained in:
parent
71f73ddc3a
commit
f55a11b8cf
@ -116,7 +116,7 @@ void *MemoryUtils::FindPattern(const void *libPtr, const char *pattern, size_t l
|
||||
}
|
||||
|
||||
ptr = reinterpret_cast<char *>(lib.baseAddress);
|
||||
end = ptr + lib.memorySize;
|
||||
end = ptr + lib.memorySize - 1;
|
||||
|
||||
while (ptr < end)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user