From a3217c89236d40d288e7c765cd400ace78a7fa20 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 16 Dec 2010 15:29:59 +0100 Subject: [PATCH] winetest: Make win9x unsupported. It's still possible to run tests with this patch, but results won't be submitted. --- programs/winetest/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/programs/winetest/main.c b/programs/winetest/main.c index 7caf9f90adb..5a7109a40d7 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -1162,8 +1162,13 @@ int main( int argc, char *argv[] ) } } if (!submit && !extract) { + int is_win9x = (GetVersion() & 0x80000000) != 0; + report (R_STATUS, "Starting up"); + if (is_win9x) + report (R_WARNING, "Running on win9x is not supported. You won't be able to submit results."); + if (!running_on_visible_desktop ()) report (R_FATAL, "Tests must be run on a visible desktop"); @@ -1208,7 +1213,7 @@ int main( int argc, char *argv[] ) DeleteFileA(logname); exit (0); } - if (build_id[0] && nr_of_skips <= SKIP_LIMIT && !nr_native_dlls && + if (build_id[0] && nr_of_skips <= SKIP_LIMIT && !nr_native_dlls && !is_win9x && report (R_ASK, MB_YESNO, "Do you want to submit the test results?") == IDYES) if (!send_file (logname) && !DeleteFileA(logname)) report (R_WARNING, "Can't remove logfile: %u", GetLastError());