forked from Mirrors/wine-wine
wintrust/tests: Fix test crash on Win9x.
parent
5e66808ad3
commit
ff833ee255
|
@ -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)
|
||||||
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)
|
||||||
|
|
||||||
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]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue