Paul Vriens : wintrust/tests: Don't crash on NT4 and W2K.
Module: wine Branch: master Commit: 936bec69cfaad868a49a6b70a9838e47255faec5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=936bec69cfaad868a49a6b70a9... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 18 17:10:17 2008 +0100 wintrust/tests: Don't crash on NT4 and W2K. --- dlls/wintrust/tests/crypt.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c index 397daff..99f3066 100644 --- a/dlls/wintrust/tests/crypt.c +++ b/dlls/wintrust/tests/crypt.c @@ -352,6 +352,13 @@ static void test_CryptCATAdminAddRemoveCatalog(void) DWORD error, written; BOOL ret; + if (!pCryptCATAdminRemoveCatalog) + { + /* NT4 and W2K do have CryptCATAdminAddCatalog !! */ + win_skip("CryptCATAdminRemoveCatalog is not available\n"); + return; + } + if (!GetTempFileNameA(CURR_DIR, "cat", 0, tmpfile)) return; DeleteFileA(tmpfile); file = CreateFileA(tmpfile, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL);
participants (1)
-
Alexandre Julliard