Commit 34ed4fd4 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Have the UNIX cwd follow the current directory on the current drive.

parent d741850d
......@@ -297,6 +297,7 @@ int DRIVE_SetCurrentDrive( int drive )
TRACE("%c:\n", 'A' + drive );
DRIVE_CurDrive = drive;
if (pTask) pTask->curdrive = drive | 0x80;
chdir(DRIVE_GetUnixCwd(drive));
return 1;
}
......@@ -689,6 +690,7 @@ int DRIVE_Chdir( int drive, const char *path )
lstrcpynA( pTask->curdir, full_name.short_name + 2,
sizeof(pTask->curdir) );
DRIVE_LastTask = GetCurrentTask();
chdir(unix_cwd); /* Only change if on current drive */
}
return 1;
}
......
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