Module: wine Branch: master Commit: e6676ff50e550eb0a928ad3205ca29eb8a2f3030 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6676ff50e550eb0a928ad3205...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Wed Jan 21 17:23:48 2009 +0100
wintrust/tests: Fix a test failure on W2K.
---
dlls/wintrust/tests/crypt.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c index 882b939..64211f1 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);