Add files via upload
This commit is contained in:
parent
1281bd4983
commit
fef2c23ded
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue