winetest: Only call GetTempPath once.

Nicolas Le Cam niko.lecam at gmail.com
Sun May 31 06:33:17 CDT 2009


---
 programs/winetest/main.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 69496bd..381328c 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -658,9 +658,6 @@ run_tests (char *logname)
     if (logfile == INVALID_HANDLE_VALUE)
         report (R_FATAL, "Could not open logfile: %u", GetLastError());
 
-    if (!GetTempPathA( MAX_PATH, tmppath ))
-        report (R_FATAL, "Can't name temporary dir (check %%TEMP%%).");
-
     /* try stable path for ZoneAlarm */
     strcpy( tempdir, tmppath );
     strcat( tempdir, "wct" );
-- 
1.6.0.4


--=-4v/t5F/j2aFvhczYdk72--




More information about the wine-patches mailing list