From e6676ff50e550eb0a928ad3205ca29eb8a2f3030 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 21 Jan 2009 17:23:48 +0100 Subject: [PATCH] wintrust/tests: Fix a test failure on W2K. --- dlls/wintrust/tests/crypt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c index 882b93927b8..64211f18394 100644 --- a/dlls/wintrust/tests/crypt.c +++ b/dlls/wintrust/tests/crypt.c @@ -621,6 +621,11 @@ static void test_catalog_properties(CHAR *catfile, int attributes, int members) ok(hcat == INVALID_HANDLE_VALUE, "CryptCATOpen succeeded\n"); hcat = pCryptCATOpen(catalogW, 0, 0, 0, 0); + if (hcat == INVALID_HANDLE_VALUE && members == 0) + { + win_skip("CryptCATOpen on W2K can't handle catalog files with no members\n"); + return; + } ok(hcat != INVALID_HANDLE_VALUE, "CryptCATOpen failed %u\n", GetLastError()); m = pCryptCATEnumerateMember(NULL, NULL);