summaryrefslogtreecommitdiff
path: root/ShellPkg/Application
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-15 20:18:58 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-15 20:18:58 +0000
commitf9125972ae96c95f284cf7faebb9ec0be8dd3a10 (patch)
tree9ae217cadcd74539449be2cbe13a45703b3d3fed /ShellPkg/Application
parentb6b22b132ada04696a0f7481a12169808c3e2b3e (diff)
downloadedk2-platforms-f9125972ae96c95f284cf7faebb9ec0be8dd3a10.tar.xz
ShellPkg: Fix concatenation on full device paths.
submitted-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12357 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r--ShellPkg/Application/Shell/ShellProtocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c
index ee40e40f08..de7dc3cad9 100644
--- a/ShellPkg/Application/Shell/ShellProtocol.c
+++ b/ShellPkg/Application/Shell/ShellProtocol.c
@@ -588,7 +588,7 @@ EfiShellGetDevicePathFromFilePath(
if (*(Path+StrLen(MapName)+1) == CHAR_NULL) {
DevicePathForReturn = FileDevicePath(Handle, L"\\");
} else {
- DevicePathForReturn = FileDevicePath(Handle, Path+StrLen(MapName)+1);
+ DevicePathForReturn = FileDevicePath(Handle, Path+StrLen(MapName));
}
FreePool(MapName);