crypt32: Fix a test that fails on Windows.

This commit is contained in:
Juan Lang 2006-01-11 20:57:41 +01:00 committed by Alexandre Julliard
parent ab6adcb077
commit 79575a8aff
1 changed files with 4 additions and 2 deletions

View File

@ -92,8 +92,10 @@ static void testOIDToAlgID(void)
/* Test with a bogus one */
SetLastError(0xdeadbeef);
alg = CertOIDToAlgId("1.2.3");
ok(!alg && GetLastError() == 0xdeadbeef,
"Didn't expect last error (%08lx) to be set\n", GetLastError());
ok(!alg && (GetLastError() == 0xdeadbeef ||
GetLastError() == ERROR_RESOURCE_NAME_NOT_FOUND),
"Expected ERROR_RESOURCE_NAME_NOT_FOUND or no error set, got %08lx\n",
GetLastError());
for (i = 0; i < sizeof(oidToAlgID) / sizeof(oidToAlgID[0]); i++)
{