diff options
Diffstat (limited to 'src/Cedar/WebUI.c')
-rw-r--r-- | src/Cedar/WebUI.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Cedar/WebUI.c b/src/Cedar/WebUI.c index f71c385f..d188911c 100644 --- a/src/Cedar/WebUI.c +++ b/src/Cedar/WebUI.c @@ -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);
|