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

This commit is contained in:
Alexander Scott-Johns 2010-06-06 15:27:47 +01:00 committed by Alexandre Julliard
parent 19bff6bda5
commit b205fd8108
1 changed files with 9 additions and 2 deletions

View File

@ -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");
}