From 1fc3749dad42e8d5caebf6e0e0327b713b6adaeb Mon Sep 17 00:00:00 2001 From: jcarsey Date: Tue, 20 Sep 2011 21:01:34 +0000 Subject: 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 --- ShellPkg/Library/BasePathLib/BasePathLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/BasePathLib') diff --git a/ShellPkg/Library/BasePathLib/BasePathLib.c b/ShellPkg/Library/BasePathLib/BasePathLib.c index 77d5866..2166c9d 100644 --- a/ShellPkg/Library/BasePathLib/BasePathLib.c +++ b/ShellPkg/Library/BasePathLib/BasePathLib.c @@ -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; } -- cgit v1.1