{\r
EFI_STATUS Status;\r
EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
+ EFI_DEVICE_PATH_PROTOCOL *DevPath;\r
EFI_DEVICE_PATH_PROTOCOL *FilePath;\r
CHAR16 *Str;\r
UINT8 *TempByteBuffer;\r
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE_DP), gShellBcfgHiiHandle, L"bcfg", Arg->FullName); \r
ShellStatus = SHELL_UNSUPPORTED;\r
} else {\r
-/*\r
if (UsePath) {\r
- DevPath = DevicePath;\r
+ DevPath = DevicePath;\r
+ ShellStatus = SHELL_INVALID_PARAMETER;\r
while (!IsDevicePathEnd(DevPath)) {\r
if ((DevicePathType(DevPath) == MEDIA_DEVICE_PATH) &&\r
(DevicePathSubType(DevPath) == MEDIA_HARDDRIVE_DP)) {\r
//\r
// If we find it use it instead\r
//\r
- DevicePath = DevPath;\r
+ ShellStatus = SHELL_SUCCESS;\r
+ FilePath = DuplicateDevicePath (DevPath);\r
break;\r
}\r
DevPath = NextDevicePathNode(DevPath);\r
}\r
- //\r
- // append the file\r
- //\r
- for(StringWalker=Arg->FullName; *StringWalker != CHAR_NULL && *StringWalker != ':'; StringWalker++);\r
- FileNode = FileDevicePath(NULL, StringWalker+1);\r
- FilePath = AppendDevicePath(DevicePath, FileNode);\r
- FreePool(FileNode);\r
} else {\r
-*/\r
FilePath = DuplicateDevicePath(DevicePath);\r
-/*\r
}\r
-*/\r
FreePool(DevicePath);\r
}\r
}\r