mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
[NTVDM]
Fix bug in DosChangeDirectory. svn path=/branches/ntvdm/; revision=59701
This commit is contained in:
parent
5921c465db
commit
f86c0161e0
|
@ -892,10 +892,16 @@ BOOLEAN DosChangeDirectory(LPSTR Directory)
|
|||
}
|
||||
|
||||
/* Get the directory part of the path */
|
||||
Path = strchr(Directory, '\\') + 1;
|
||||
Path = strchr(Directory, '\\');
|
||||
if (Path != NULL)
|
||||
{
|
||||
/* Skip the backslash */
|
||||
Path++;
|
||||
}
|
||||
|
||||
/* Set the directory for the drive */
|
||||
strcpy(CurrentDirectories[DriveNumber], Path);
|
||||
if (Path != NULL) strcpy(CurrentDirectories[DriveNumber], Path);
|
||||
else strcpy(CurrentDirectories[DriveNumber], "");
|
||||
|
||||
/* Return success */
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue