From 8c940261563c91eab020578aa6204f8f7dd65c2c Mon Sep 17 00:00:00 2001 From: zvon Date: Thu, 16 Apr 2020 12:04:15 +0200 Subject: [PATCH] functions.cpp: use widechar version of _vscprintf --- functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.cpp b/functions.cpp index 4b5570c..1ebcf87 100644 --- a/functions.cpp +++ b/functions.cpp @@ -70,7 +70,7 @@ std::wstring LMsg( int id, ... ) { va_start( args, id ); // _vscprintf doesn't count ending '\0' - int len = _vscprintf( local, args ) + 1; + int len = _vscwprintf( local, args ) + 1; va_end( args ); wchar_t *text = new wchar_t[len]; va_start( args, id );