From 0ec9dc9320477df409bd61fe8a2016cb37a0405e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 04:22:30 -0400 Subject: _snprintf_s() is not supported on Windows XP... --- new/init_windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'new/init_windows.c') diff --git a/new/init_windows.c b/new/init_windows.c index e2cc1f2..bfc92a9 100644 --- a/new/init_windows.c +++ b/new/init_windows.c @@ -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; } -- cgit v1.2.3