[Base] Use vwsprintf instead of _vsnwprintf.

This commit is contained in:
gibbed 2019-08-04 03:44:08 -05:00
parent 5ea54d9326
commit 8b1f728d85
1 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,8 @@ void FatalError(const char* fmt, ...) {
void FatalError(const wchar_t* fmt, ...) {
va_list args;
va_start(args, fmt);
_vsnwprintf((wchar_t*)log_format_buffer_.data(),
log_format_buffer_.capacity() >> 1, fmt, args);
vswprintf((wchar_t*)log_format_buffer_.data(),
log_format_buffer_.capacity() >> 1, fmt, args);
va_end(args);
LogLine(LogLevel::Error, 'X',