fixed WideStringCharReplacer bug
This commit is contained in:
parent
f3fbe04409
commit
6f75b62f77
@ -363,7 +363,7 @@ void WideStringCharReplacer(wchar_t *str, size_t *size, const wchar_t *src, size
|
|||||||
curlen = len - (cur - str);
|
curlen = len - (cur - str);
|
||||||
if (curlen == 0)
|
if (curlen == 0)
|
||||||
break;
|
break;
|
||||||
::memmove(cur, cur + srclen, 2 * curlen);
|
::memmove(cur, cur + srclen -1, 2 * curlen);
|
||||||
}
|
}
|
||||||
*size = len * 2;
|
*size = len * 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user