Juan Lang : crypt32: Fix test failures on NT4.

Alexandre Julliard julliard at winehq.org
Thu Oct 9 07:42:58 CDT 2008


Module: wine
Branch: master
Commit: 5fc947e0b6f501487cda8368d6b39bda59479df9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5fc947e0b6f501487cda8368d6b39bda59479df9

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Oct  8 13:12:11 2008 -0700

crypt32: Fix test failures on NT4.

---

 dlls/crypt32/tests/encode.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 0b16488..9d3635d 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -6426,6 +6426,11 @@ static void test_encodeCMSSignerInfo(DWORD dwEncoding)
     ret = pCryptEncodeObjectEx(dwEncoding, CMS_SIGNER_INFO, &info,
      CRYPT_ENCODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size);
     ok(!ret, "Expected failure, got %d\n", ret);
+    if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
+    {
+        skip("no CMS_SIGNER_INFO encode support\n");
+        return;
+    }
     ok(GetLastError() == E_INVALIDARG,
        "Expected E_INVALIDARG, got %08x\n", GetLastError());
     /* To be encoded, a signer must have a valid cert ID, where a valid ID may




More information about the wine-cvs mailing list