From 77ca0d8935fe1060c7f3d8e5f49f3e6da284816d Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 12 Nov 2008 17:35:12 +0100 Subject: [PATCH] crypt32/tests: Fix a test failure on Vista and W2K8. --- dlls/crypt32/tests/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c index b1e53b13c56..9b622bbbd08 100644 --- a/dlls/crypt32/tests/main.c +++ b/dlls/crypt32/tests/main.c @@ -467,8 +467,10 @@ static void test_format_object(void) SetLastError(0xdeadbeef); ret = pCryptFormatObject(X509_ASN_ENCODING, 0, CRYPT_FORMAT_STR_NO_HEX, NULL, NULL, NULL, 0, NULL, &size); - ok(!ret && GetLastError() == ERROR_FILE_NOT_FOUND, - "expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); + ok(!ret, "CryptFormatObject succeeded\n"); + ok(GetLastError() == ERROR_FILE_NOT_FOUND || + GetLastError() == 0xdeadbeef, /* Vista, W2K8 */ + "expected ERROR_FILE_NOT_FOUND or no change, got %d\n", GetLastError()); /* When called to format an AUTHORITY_KEY_ID2_INFO, it fails when no * data are given. */