Commit a703343f authored by Ferenc Wagner's avatar Ferenc Wagner Committed by Alexandre Julliard

Check desktop visibility after processing command line arguments.

parent a807c5ef
......@@ -551,11 +551,6 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
const char *cp, *submit = NULL, *tag = NULL;
int reset_env = 1;
if (!running_on_visible_desktop ()) {
report (R_ERROR, "Tests must be run on a visible desktop");
exit (2);
}
/* initialize the revision information first */
extract_rev_infos();
......@@ -605,6 +600,11 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
cmdLine = strtok (NULL, whitespace);
}
if (!submit) {
if (!running_on_visible_desktop ()) {
report (R_ERROR, "Tests must be run on a visible desktop");
exit (2);
}
if (reset_env && (putenv ("WINETEST_PLATFORM=windows") ||
putenv ("WINETEST_DEBUG=1") ||
putenv ("WINETEST_INTERACTIVE=0") ||
......
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