_snprintf_s() is not supported on Windows XP...

This commit is contained in:
Pietro Gagliardi 2015-04-07 04:22:30 -04:00
parent 978e9b5e94
commit 85e711e54c
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ static void loadLastError(uiInitError *err, const char *message)
le = GetLastError();
// TODO FormatMessageW() it
_snprintf_s(err->failbuf, 256, _TRUNCATE, "error %s (last error %I32u)", message, le);
// TODO make sure argument is right; _snprintf_s() isn't supported on Windows XP
sprintf(err->failbuf, 256, "error %s (last error %I32u)", message, le);
err->msg = err->failbuf;
}