diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c index f217b40fc37..c3bea63a057 100644 --- a/dlls/crypt32/tests/main.c +++ b/dlls/crypt32/tests/main.c @@ -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++) {