From 6a8d623a5669f2e18493d6fa56eb3f4044cf71f2 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 25 Nov 2008 16:01:02 +0100 Subject: [PATCH] rsaenh/tests: Fix a test failure on W2K and below. --- dlls/rsaenh/tests/rsaenh.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 1f05ed18326..9ef443c8f99 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()); -- 2.11.4.GIT