ShellPkg: fix support for "\" (or "\.") meaning root of drive.
Cp command fixed to allow for copying single or multiple files to the root of the drive with destination directory \. Cd command fixed to allow for changing CWD to the root of the drive with destination directory \. signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12392 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -112,7 +112,7 @@ PathCleanUpDirectories(
|
||||
CopyMem(Path+StrLen(Path), TempString, TempSize);
|
||||
}
|
||||
if ((TempString = StrStr(Path, L"\\.")) != NULL && *(TempString + 2) == CHAR_NULL) {
|
||||
*TempString = CHAR_NULL;
|
||||
*(TempString + 1) = CHAR_NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user