From 899207b6c9ac8193467de068a98b6aba5ecefdd7 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 28 Oct 2015 11:22:37 +0100 Subject: [PATCH] rsaenh/tests: Mark an old behavior as broken (PVS-Studio). All newer Windows support salt in their AES provider. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/rsaenh/tests/rsaenh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 439d2530ef4..b7616fc4164 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -1166,8 +1166,8 @@ static void test_aes(int keylen) /* Does AES provider support salt? */ result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); - ok((!result && GetLastError() == NTE_BAD_KEY) || result /* Win7 */, - "expected NTE_BAD_KEY, got %08x\n", GetLastError()); + todo_wine ok(result || broken(GetLastError() == NTE_BAD_KEY), /* Vista or older */ + "Expected OK, got last error %d\n", GetLastError()); if (result) ok(!dwLen, "unexpected salt length %d\n", dwLen); -- 2.11.4.GIT