functions.cpp: use widechar version of _vscprintf
This commit is contained in:
parent
d2f39eb358
commit
8c94026156
@ -70,7 +70,7 @@ std::wstring LMsg( int id, ... ) {
|
|||||||
|
|
||||||
va_start( args, id );
|
va_start( args, id );
|
||||||
// _vscprintf doesn't count ending '\0'
|
// _vscprintf doesn't count ending '\0'
|
||||||
int len = _vscprintf( local, args ) + 1;
|
int len = _vscwprintf( local, args ) + 1;
|
||||||
va_end( args );
|
va_end( args );
|
||||||
wchar_t *text = new wchar_t[len];
|
wchar_t *text = new wchar_t[len];
|
||||||
va_start( args, id );
|
va_start( args, id );
|
||||||
|
Loading…
Reference in New Issue
Block a user