Advertisement
BloodknightStudios

vsnprintf fix?

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