Commit b205fd81 authored by Alexander Scott-Johns's avatar Alexander Scott-Johns Committed by Alexandre Julliard

msvcrt/tests: Properly skip if functions are not available.

parent 19bff6bd
......@@ -864,6 +864,13 @@ START_TEST(printf)
p__vscprintf = (void *)GetProcAddress(GetModuleHandle("msvcrt.dll"), "_vscprintf");
p__vscwprintf = (void *)GetProcAddress(GetModuleHandle("msvcrt.dll"), "_vscwprintf");
if (p__vscprintf) test_vscprintf();
if (p__vscwprintf) test_vscwprintf();
if (p__vscprintf)
test_vscprintf();
else
win_skip("_vscprintf not available\n");
if (p__vscwprintf)
test_vscwprintf();
else
win_skip("_vscwprintf not available\n");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment