]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/BasePathLib/BasePathLib.c
ShellPkg: fix support for "\" (or "\.") meaning root of drive.
[mirror_edk2.git] / ShellPkg / Library / BasePathLib / BasePathLib.c
index 77d5866a817af43a5b144c76759d9b230bb7ccef..2166c9d8af06a138eb147551c166c00dab91874a 100644 (file)
@@ -112,7 +112,7 @@ PathCleanUpDirectories(
     CopyMem(Path+StrLen(Path), TempString, TempSize);\r
   }\r
   if ((TempString = StrStr(Path, L"\\.")) != NULL && *(TempString + 2) == CHAR_NULL) {\r
-    *TempString = CHAR_NULL;\r
+    *(TempString + 1) = CHAR_NULL;\r
   }\r
 \r
 \r