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

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


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Nov 25 16:01:02 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 1f05ed1..9ef443c 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -982,8 +982,11 @@ static void test_rc4(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