Paul Vriens : rsaenh/tests: Fix a test failure on W2K and below.

Alexandre Julliard julliard at winehq.org
Wed Nov 26 07:32:26 CST 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Nov 25 16:50:38 2008 +0100

rsaenh/tests: Fix a test failure on W2K and below.

---

 dlls/rsaenh/tests/rsaenh.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 1bb4ad2..a2636b5 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -831,8 +831,11 @@ static void test_rc2(void)
             ok(result, "setting salt failed for size %d: %08x\n", i, GetLastError());
         }
         salt.cbData = 25;
+        SetLastError(0xdeadbeef);
         result = CryptSetKeyParam(hKey, KP_SALT_EX, (BYTE *)&salt, 0);
-        ok(!result, "%08x\n", GetLastError());
+        ok(!result ||
+           broken(result), /* Win9x, WinMe, NT4, W2K */
+           "%08x\n", GetLastError());
 
         result = CryptDestroyKey(hKey);
         ok(result, "%08x\n", GetLastError());




More information about the wine-cvs mailing list