crypt32: Fix a failing test in Vista.

This commit is contained in:
James Hawkins 2008-08-28 21:16:38 -05:00 committed by Alexandre Julliard
parent 77f6156724
commit 56d5a7f169
1 changed files with 3 additions and 2 deletions

View File

@ -102,9 +102,10 @@ static void testOIDToAlgID(void)
ok(!alg, "Expected failure, got %d\n", alg); ok(!alg, "Expected failure, got %d\n", alg);
ok(GetLastError() == 0xdeadbeef || ok(GetLastError() == 0xdeadbeef ||
GetLastError() == ERROR_RESOURCE_NAME_NOT_FOUND || GetLastError() == ERROR_RESOURCE_NAME_NOT_FOUND ||
GetLastError() == ERROR_INVALID_PARAMETER || /* Vista */
GetLastError() == ERROR_SUCCESS, /* win2k */ GetLastError() == ERROR_SUCCESS, /* win2k */
"Expected ERROR_RESOURCE_NAME_NOT_FOUND, ERROR_SUCCESS " "Expected ERROR_RESOURCE_NAME_NOT_FOUND, ERROR_INVALID_PARAMETER, "
"or no error set, got %08x\n", GetLastError()); "ERROR_SUCCESS or no error set, got %08x\n", GetLastError());
for (i = 0; i < sizeof(oidToAlgID) / sizeof(oidToAlgID[0]); i++) for (i = 0; i < sizeof(oidToAlgID) / sizeof(oidToAlgID[0]); i++)
{ {