winetest: Write-strings warnings fix.

This commit is contained in:
Andrew Talbot 2006-08-12 22:26:52 +01:00 committed by Alexandre Julliard
parent 6c3667ad10
commit de92ffa3b7
1 changed files with 9 additions and 4 deletions

View File

@ -623,15 +623,20 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
cmdLine = strtok (NULL, whitespace);
}
if (!submit) {
static CHAR platform_windows[] = "WINETEST_PLATFORM=windows",
debug_yes[] = "WINETEST_DEBUG=1",
interactive_no[] = "WINETEST_INTERACTIVE=0",
report_success_no[] = "WINETEST_REPORT_SUCCESS=0";
report (R_STATUS, "Starting up");
if (!running_on_visible_desktop ())
report (R_FATAL, "Tests must be run on a visible desktop");
if (reset_env && (putenv ("WINETEST_PLATFORM=windows") ||
putenv ("WINETEST_DEBUG=1") ||
putenv ("WINETEST_INTERACTIVE=0") ||
putenv ("WINETEST_REPORT_SUCCESS=0")))
if (reset_env && (putenv (platform_windows) ||
putenv (debug_yes) ||
putenv (interactive_no) ||
putenv (report_success_no)))
report (R_FATAL, "Could not reset environment: %d", errno);
if (!tag) {