wintrust/tests: Fix some tests on win9x.
This commit is contained in:
parent
bc22a89306
commit
49ff2be04e
|
@ -854,7 +854,9 @@ static void test_cdf_parsing(void)
|
|||
catcdf = pCryptCATCDFOpen(cdffileW, cdf_callback);
|
||||
ok(catcdf == NULL, "CryptCATCDFOpen succeeded\n");
|
||||
todo_wine
|
||||
ok(GetLastError() == ERROR_SHARING_VIOLATION, "Expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
|
||||
ok(GetLastError() == ERROR_SHARING_VIOLATION ||
|
||||
broken(GetLastError() == ERROR_SUCCESS), /* win9x */
|
||||
"Expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
|
||||
DeleteFileA(cdffileA);
|
||||
|
||||
/* Header and member only */
|
||||
|
@ -868,7 +870,9 @@ static void test_cdf_parsing(void)
|
|||
catcdf = pCryptCATCDFOpen(cdffileW, cdf_callback);
|
||||
ok(catcdf == NULL, "CryptCATCDFOpen succeeded\n");
|
||||
todo_wine
|
||||
ok(GetLastError() == ERROR_SHARING_VIOLATION, "Expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
|
||||
ok(GetLastError() == ERROR_SHARING_VIOLATION ||
|
||||
broken(GetLastError() == ERROR_SUCCESS), /* win9x */
|
||||
"Expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
|
||||
DeleteFileA(cdffileA);
|
||||
ok(!DeleteFileA(catfileA), "Didn't expect a catalog file to be created\n");
|
||||
|
||||
|
@ -882,7 +886,9 @@ static void test_cdf_parsing(void)
|
|||
catcdf = pCryptCATCDFOpen(cdffileW, cdf_callback);
|
||||
ok(catcdf == NULL, "CryptCATCDFOpen succeeded\n");
|
||||
todo_wine
|
||||
ok(GetLastError() == ERROR_SHARING_VIOLATION, "Expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
|
||||
ok(GetLastError() == ERROR_SHARING_VIOLATION ||
|
||||
broken(GetLastError() == ERROR_SUCCESS), /* win9x */
|
||||
"Expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
|
||||
DeleteFileA(cdffileA);
|
||||
ok(!DeleteFileA(catfileA), "Didn't expect a catalog file to be created\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue