kernel32/tests: Split the test for ret and last error.

This commit is contained in:
Paul Vriens 2008-09-04 19:51:37 +02:00 committed by Alexandre Julliard
parent ea17a9192c
commit 94b73a6d04
1 changed files with 5 additions and 2 deletions

View File

@ -164,8 +164,11 @@ static void test_VerifyVersionInfo(void)
pVerSetConditionMask(pVerSetConditionMask(0, VER_MINORVERSION, VER_GREATER_EQUAL),
VER_MAJORVERSION, VER_GREATER_EQUAL));
if (servicepack == 0)
ok(!ret && (GetLastError() == ERROR_OLD_WIN_VERSION),
"VerifyVersionInfoA should have failed with ERROR_OLD_WIN_VERSION instead of %d\n", GetLastError());
{
ok(!ret, "VerifyVersionInfoA should have failed\n");
ok(GetLastError() == ERROR_OLD_WIN_VERSION,
"Expected ERROR_OLD_WIN_VERSION instead of %d\n", GetLastError());
}
else
ok(ret, "VerifyVersionInfoA failed with error %d\n", GetLastError());