mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-10 01:34:58 +03:00
v4.22-9634-beta
This commit is contained in:
@ -1725,12 +1725,14 @@ static wchar_t *WuUniReadFile(char *filename)
|
||||
static void WuUniReplace(wchar_t **buf, wchar_t *from, wchar_t *to)
|
||||
{
|
||||
UINT dstsize;
|
||||
wchar_t *oldbuf;
|
||||
|
||||
if(buf == NULL || from == NULL || to == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
wchar_t *oldbuf = *buf;
|
||||
|
||||
oldbuf = *buf;
|
||||
|
||||
dstsize = (UniCalcReplaceStrEx(*buf, from, to, true) + 1) * sizeof(wchar_t);
|
||||
*buf = (wchar_t*)Malloc(dstsize);
|
||||
|
Reference in New Issue
Block a user