Add files via upload

This commit is contained in:
vxunderground 2021-05-28 01:20:11 -05:00 committed by GitHub
parent 1281bd4983
commit fef2c23ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,13 @@
PWCHAR StringRemoveSubstringW(PWCHAR String, CONST PWCHAR Substring)
{
DWORD Length = (DWORD)StringLengthW(Substring);
PWCHAR pPointer = String;
if (Length == 0)
return NULL;
while ((pPointer = StringFindSubstringW(pPointer, Substring)) != NULL)
MoveMemory(pPointer, pPointer + Length, StringLengthW(pPointer + Length) + 1);
return String;
}