Check desktop visibility after processing command line arguments.

This commit is contained in:
Ferenc Wagner 2005-03-25 17:11:52 +00:00 committed by Alexandre Julliard
parent a807c5efce
commit a703343f60
1 changed files with 5 additions and 5 deletions

View File

@ -551,11 +551,6 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
const char *cp, *submit = NULL, *tag = NULL; const char *cp, *submit = NULL, *tag = NULL;
int reset_env = 1; 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 */ /* initialize the revision information first */
extract_rev_infos(); extract_rev_infos();
@ -605,6 +600,11 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
cmdLine = strtok (NULL, whitespace); cmdLine = strtok (NULL, whitespace);
} }
if (!submit) { 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") || if (reset_env && (putenv ("WINETEST_PLATFORM=windows") ||
putenv ("WINETEST_DEBUG=1") || putenv ("WINETEST_DEBUG=1") ||
putenv ("WINETEST_INTERACTIVE=0") || putenv ("WINETEST_INTERACTIVE=0") ||