Commit fbc9dc10 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

winetest: Run tests again on Win9x.

parent c4ac69b7
......@@ -346,6 +346,14 @@ get_subtests (const char *tempdir, struct wine_test *test, LPTSTR res_name)
subfile = CreateFileA( subname, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
&sa, CREATE_ALWAYS, 0, NULL );
if ((subfile == INVALID_HANDLE_VALUE) &&
(GetLastError() == ERROR_INVALID_PARAMETER)) {
/* FILE_SHARE_DELETE not supported on win9x */
subfile = CreateFileA( subname, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
&sa, CREATE_ALWAYS, 0, NULL );
}
if (subfile == INVALID_HANDLE_VALUE) {
report (R_ERROR, "Can't open subtests output of %s: %u",
test->name, GetLastError());
......@@ -474,6 +482,14 @@ run_tests (char *logname)
logfile = CreateFileA( logname, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
&sa, CREATE_ALWAYS, 0, NULL );
if ((logfile == INVALID_HANDLE_VALUE) &&
(GetLastError() == ERROR_INVALID_PARAMETER)) {
/* FILE_SHARE_DELETE not supported on win9x */
logfile = CreateFileA( logname, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
&sa, CREATE_ALWAYS, 0, NULL );
}
if (logfile == INVALID_HANDLE_VALUE)
report (R_FATAL, "Could not open logfile: %u", GetLastError());
......
......@@ -134,6 +134,14 @@ send_file (const char *name)
file = CreateFileA( name, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
NULL, OPEN_EXISTING, 0, NULL );
if ((file == INVALID_HANDLE_VALUE) &&
(GetLastError() == ERROR_INVALID_PARAMETER)) {
/* FILE_SHARE_DELETE not supported on win9x */
file = CreateFileA( name, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, NULL );
}
if (file == INVALID_HANDLE_VALUE)
{
report (R_WARNING, "Can't open file '%s': %u", name, GetLastError());
......
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