Paul Vriens : crypt32/tests: Fix a test failure on Vista and W2K8.
Alexandre Julliard
julliard at winehq.org
Thu Nov 13 08:51:25 CST 2008
Module: wine
Branch: master
Commit: 77ca0d8935fe1060c7f3d8e5f49f3e6da284816d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=77ca0d8935fe1060c7f3d8e5f49f3e6da284816d
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Nov 12 17:35:12 2008 +0100
crypt32/tests: Fix a test failure on Vista and W2K8.
---
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 b1e53b1..9b622bb 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.
*/
More information about the wine-cvs
mailing list