rasenh/tests: Fix a test failure.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2020-01-20 11:43:37 +08:00 committed by Alexandre Julliard
parent 49a71fcc77
commit 39f96c1fa9

View file

@ -2388,8 +2388,11 @@ static void test_rsa_encrypt(void)
/* It is not allowed to use the signature key for encryption/decryption */
result = CryptGetUserKey(hProv, AT_SIGNATURE, &hRSAKey);
ok (result, "%08x\n", GetLastError());
if (!result) return;
if (!result)
{
skip("No signature key in provider %s found, error %#x.\n", szProviders[iProv], GetLastError());
return;
}
dwVal = 0xdeadbeef;
dwLen = sizeof(DWORD);