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

oldstable
Marcus Meissner 2000-09-27 00:22:16 +00:00 committed by Alexandre Julliard
parent d741850dd8
commit 34ed4fd40f
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}