Juan Lang : crypt32: Fix test failures on Win9x/NT4.
Alexandre Julliard
julliard at winehq.org
Mon Nov 9 15:14:17 CST 2009
Module: wine
Branch: master
Commit: 267e8902205ba60e6eeabf4fe4ae23d5ec038d8d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=267e8902205ba60e6eeabf4fe4ae23d5ec038d8d
Author: Juan Lang <juan.lang at gmail.com>
Date: Fri Nov 6 13:08:38 2009 -0800
crypt32: Fix test failures on Win9x/NT4.
---
dlls/crypt32/tests/protectdata.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/tests/protectdata.c b/dlls/crypt32/tests/protectdata.c
index 08ab72a..c3173c3 100644
--- a/dlls/crypt32/tests/protectdata.c
+++ b/dlls/crypt32/tests/protectdata.c
@@ -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) {
More information about the wine-cvs
mailing list