wintrust/tests: Fix some tests on win9x.

This commit is contained in:
Detlef Riekenberg 2009-04-08 19:53:59 +02:00 committed by Alexandre Julliard
parent bc22a89306
commit 49ff2be04e
1 changed files with 9 additions and 3 deletions

View File

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