Paul Vriens : crypt32/tests: Fix a test failure on Win9x.

Alexandre Julliard julliard at winehq.org
Thu Mar 12 09:54:24 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Mar 12 09:18:21 2009 +0100

crypt32/tests: Fix a test failure on Win9x.

---

 dlls/crypt32/tests/msg.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 5f74aee..1236153 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -2977,12 +2977,14 @@ static void test_msg_control(void)
      "expected NTE_BAD_SIGNATURE or OSS_DATA_ERROR, got %08x\n",
      GetLastError());
     /* Now that the signature's been checked, can't do the final update */
+    SetLastError(0xdeadbeef);
     ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), TRUE);
     todo_wine
-    ok(!ret &&
+    ok((!ret &&
      (GetLastError() == NTE_BAD_HASH_STATE ||
       GetLastError() == NTE_BAD_ALGID ||    /* Win9x */
-      GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */
+      GetLastError() == CRYPT_E_MSG_ERROR)) || /* Vista */
+      broken(ret), /* Win9x */
      "expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID or CRYPT_E_MSG_ERROR, "
      "got %08x\n", GetLastError());
     CryptMsgClose(msg);




More information about the wine-cvs mailing list