Module: wine Branch: master Commit: 6a8d623a5669f2e18493d6fa56eb3f4044cf71f2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a8d623a5669f2e18493d6fa56...
Author: Paul Vriens Paul.Vriens.Wine@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());