mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
2.0.505
2.0.505
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include "StringManipulation.h"
|
||||
|
||||
PVOID MemoryFindMemory(_In_ PVOID Haystack, _In_ SIZE_T HaystackLength, _In_ PVOID Needle, _In_ SIZE_T NeedleLength)
|
||||
{
|
||||
if (!Haystack || !HaystackLength || !Needle || !NeedleLength)
|
||||
return NULL;
|
||||
|
||||
for (PCHAR pChar = (PCHAR)Haystack; HaystackLength >= NeedleLength; ++pChar, --HaystackLength)
|
||||
{
|
||||
if (!memcmp(pChar, Needle, NeedleLength))
|
||||
return pChar;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
Reference in New Issue
Block a user