Commit 267e8902 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Fix test failures on Win9x/NT4.

parent fbcce9f3
......@@ -225,7 +225,13 @@ static void test_simpleroundtrip(const char *plaintext, int wine_fails)
input.pbData = (unsigned char *)plaintext;
input.cbData = strlen(plaintext);
res = pCryptProtectData(&input, emptyW, NULL, NULL, NULL, 0, &encrypted);
ok(res != 0, "can't protect\n");
ok(res != 0 || broken(!res), "can't protect\n");
if (!res)
{
/* Fails on Win9x, NT4 */
win_skip("CryptProtectData failed\n");
return;
}
res = pCryptUnprotectData(&encrypted, NULL, NULL, NULL, NULL, 0, &output);
if (wine_fails) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment