]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/Shell.c
This refactors 3 functions out of ShellCommandLib and puts them into a new library...
[mirror_edk2.git] / ShellPkg / Application / Shell / Shell.c
index ae4c0606e343de4a4768090e662c8842282be079..452c65588be502a140615260cd71e94d334521bd 100644 (file)
@@ -859,7 +859,7 @@ DoStartupScript(
       *TempSpot = CHAR_NULL;\r
     }\r
     FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, ((FILEPATH_DEVICE_PATH*)FilePath)->PathName, 0);\r
-    ChopLastSlash(FileStringPath);\r
+    PathRemoveLastItem(FileStringPath);\r
     FileStringPath = StrnCatGrow(&FileStringPath, &NewSize, mStartupScript, 0);\r
     Status = ShellInfoObject.NewEfiShellProtocol->OpenFileByName(FileStringPath, &FileHandle, EFI_FILE_MODE_READ);\r
     FreePool(FileStringPath);\r