James Hawkins : crypt32: Fix a failing test in Vista.

Alexandre Julliard julliard at winehq.org
Fri Aug 29 07:30:03 CDT 2008


Module: wine
Branch: master
Commit: fff29663abde67845f85022d2dd47048b57eed1d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fff29663abde67845f85022d2dd47048b57eed1d

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Thu Aug 28 21:12:22 2008 -0500

crypt32: Fix a failing test in Vista.

---

 dlls/crypt32/tests/message.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/tests/message.c b/dlls/crypt32/tests/message.c
index adfa0eb..1072185 100644
--- a/dlls/crypt32/tests/message.c
+++ b/dlls/crypt32/tests/message.c
@@ -414,9 +414,11 @@ static void test_hash_message(void)
     SetLastError(0xdeadbeef);
     ret = CryptHashMessage(&para, FALSE, 2, toHash, hashSize, NULL,
      &hashedBlobSize, NULL, NULL);
-    ok(!ret && GetLastError() == CRYPT_E_UNKNOWN_ALGO,
-     "expected CRYPT_E_UNKNOWN_ALGO, got 0x%08x (%d)\n", GetLastError(),
-     GetLastError());
+    ok(!ret &&
+     (GetLastError() == CRYPT_E_UNKNOWN_ALGO ||
+      GetLastError() == CRYPT_E_OID_FORMAT), /* Vista */
+     "expected CRYPT_E_UNKNOWN_ALGO or CRYPT_E_OID_FORMAT, got 0x%08x (%d)\n",
+     GetLastError(), GetLastError());
     para.HashAlgorithm.pszObjId = oid_rsa_md5;
     /* With a valid hash algorithm, this succeeds, even though fDetached is
      * FALSE.




More information about the wine-cvs mailing list