fixed WideStringCharReplacer bug

This commit is contained in:
Blu3train 2023-08-24 23:19:47 +02:00
parent f3fbe04409
commit 6f75b62f77

View File

@ -363,7 +363,7 @@ void WideStringCharReplacer(wchar_t *str, size_t *size, const wchar_t *src, size
curlen = len - (cur - str);
if (curlen == 0)
break;
::memmove(cur, cur + srclen, 2 * curlen);
::memmove(cur, cur + srclen -1, 2 * curlen);
}
*size = len * 2;
}