Advertisement
BloodknightStudios

Untitled

Dec 9th, 2015
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #if defined(TORQUE_OS_WIN) || defined(TORQUE_OS_XBOX) || defined(TORQUE_OS_XENON)
  2.        S32 LEN = sizeof(_fixedBuffer + _len);
  3.        wchar_t wstr[sizeof(LEN)];
  4.        std::mbstowcs(wstr, _fixedBuffer, LEN);
  5.        _len += FormatMessage(NULL, format, 0, 0, wstr, sizeof(_fixedBuffer) - _len, &args);
  6. #else
  7.        _len += vsnprintf(_fixedBuffer + _len, sizeof(_fixedBuffer) - _len, format, args);
  8. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement