Index: source/lib/tests/test_secure_crt.h =================================================================== --- source/lib/tests/test_secure_crt.h +++ source/lib/tests/test_secure_crt.h @@ -309,8 +309,8 @@ static void TEST_WPRINTF(wchar_t* dst, size_t max_dst_chars, const wchar_t* dst_val, int expected_ret, const wchar_t* expected_dst, const wchar_t* fmt, ...) { - TS_ASSERT(dst); - wcscpy(dst, dst_val); + if (dst) + wcscpy(dst, dst_val); va_list ap; va_start(ap, fmt); int ret = vswprintf_s(dst, max_dst_chars, fmt, ap);