Module: wine Branch: refs/heads/master Commit: 79575a8aff807dccdceda4cbaf5fe4df78384b24 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=79575a8aff807dccdceda4cb...
Author: Juan Lang juan_lang@yahoo.com Date: Wed Jan 11 20:57:41 2006 +0100
crypt32: Fix a test that fails on Windows.
---
dlls/crypt32/tests/main.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c index f217b40..c3bea63 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++) {