Commit 2197bc9a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winetest: Fix handling of relative -d directories.

Convert them to an absolute path so they result in a command line which is still valid after changing the current directory in CreateProcess(). Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent dbf3b3b6
......@@ -1066,7 +1066,10 @@ run_tests (char *logname, char *outdir)
report (R_FATAL, "Could not open logfile: %u", GetLastError());
if (outdir)
strcpy( tempdir, outdir);
{
/* Get a full path so it is still valid after a chdir */
GetFullPathNameA( outdir, ARRAY_SIZE(tempdir), tempdir, NULL );
}
else
{
strcpy( tempdir, tmppath );
......
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