[apitest/crt]
authorChristoph von Wittich <christoph_vw@reactos.org>
Mon, 8 Sep 2014 07:00:00 +0000 (07:00 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Mon, 8 Sep 2014 07:00:00 +0000 (07:00 +0000)
apply the same buffer size fix to _vsnwprintf test

svn path=/trunk/; revision=64082

rostests/apitests/crt/_vsnwprintf.c

index 3f2bad9..4fc9f28 100644 (file)
@@ -19,7 +19,7 @@ static void call_varargs(wchar_t* buf, size_t buf_size, int expected_ret, LPCWST
     int ret;
     /* Test the basic functionality */
     va_start(args, formatString);
-    ret = _vsnwprintf(buf, 255, formatString, args);
+    ret = _vsnwprintf(buf, buf_size, formatString, args);
     ok(expected_ret == ret, "Test failed: expected %i, got %i.\n", expected_ret, ret);
 }