wintrust/tests: Don't crash on NT4 and W2K.

This commit is contained in:
Paul Vriens 2008-12-18 17:10:17 +01:00 committed by Alexandre Julliard
parent ff833ee255
commit 936bec69cf
1 changed files with 7 additions and 0 deletions

View File

@ -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);