Commit ff833ee2 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

wintrust/tests: Fix test crash on Win9x.

parent 5e66808a
...@@ -116,12 +116,6 @@ static void test_context(void) ...@@ -116,12 +116,6 @@ static void test_context(void)
CHAR windir[MAX_PATH], catroot[MAX_PATH], catroot2[MAX_PATH], dummydir[MAX_PATH]; CHAR windir[MAX_PATH], catroot[MAX_PATH], catroot2[MAX_PATH], dummydir[MAX_PATH];
DWORD attrs; DWORD attrs;
if (!pCryptCATAdminAcquireContext || !pCryptCATAdminReleaseContext)
{
skip("CryptCATAdminAcquireContext and/or CryptCATAdminReleaseContext are not available\n");
return;
}
/* When CryptCATAdminAcquireContext is successful it will create /* When CryptCATAdminAcquireContext is successful it will create
* several directories if they don't exist: * several directories if they don't exist:
* *
...@@ -262,12 +256,6 @@ static void test_calchash(void) ...@@ -262,12 +256,6 @@ static void test_calchash(void)
CHAR temp[MAX_PATH]; CHAR temp[MAX_PATH];
DWORD written; DWORD written;
if (!pCryptCATAdminCalcHashFromFileHandle)
{
skip("CryptCATAdminCalcHashFromFileHandle is not available\n");
return;
}
/* All NULL */ /* All NULL */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = pCryptCATAdminCalcHashFromFileHandle(NULL, NULL, NULL, 0); ret = pCryptCATAdminCalcHashFromFileHandle(NULL, NULL, NULL, 0);
...@@ -438,6 +426,12 @@ START_TEST(crypt) ...@@ -438,6 +426,12 @@ START_TEST(crypt)
InitFunctionPtrs(); InitFunctionPtrs();
if (!pCryptCATAdminAcquireContext)
{
win_skip("CryptCATAdmin functions are not available\n");
return;
}
myARGC = winetest_get_mainargs(&myARGV); myARGC = winetest_get_mainargs(&myARGV);
strcpy(selfname, myARGV[0]); strcpy(selfname, myARGV[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment