Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined(TORQUE_OS_WIN) || defined(TORQUE_OS_XBOX) || defined(TORQUE_OS_XENON)
- S32 LEN = sizeof(_fixedBuffer + _len);
- wchar_t wstr[sizeof(LEN)];
- std::mbstowcs(wstr, _fixedBuffer, LEN);
- _len += FormatMessage(NULL, format, 0, 0, wstr, sizeof(_fixedBuffer) - _len, &args);
- #else
- _len += vsnprintf(_fixedBuffer + _len, sizeof(_fixedBuffer) - _len, format, args);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement