crypt32: Fix test failures on Win9x/NT4.

This commit is contained in:
Juan Lang 2009-11-06 13:08:38 -08:00 committed by Alexandre Julliard
parent fbcce9f308
commit 267e890220

View file

@ -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) {