crypt32: Fix a test that fails on Windows.
This commit is contained in:
parent
ab6adcb077
commit
79575a8aff
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue