prevents "" from being the result of trying to open the root of a drive.
more input validation on vol command. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11444 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -585,7 +585,11 @@ EfiShellGetDevicePathFromFilePath(
|
||||
//
|
||||
// build the full device path
|
||||
//
|
||||
DevicePathForReturn = FileDevicePath(Handle, Path+StrLen(MapName)+1);
|
||||
if (*(Path+StrLen(MapName)+1) == CHAR_NULL) {
|
||||
DevicePathForReturn = FileDevicePath(Handle, L"\\");
|
||||
} else {
|
||||
DevicePathForReturn = FileDevicePath(Handle, Path+StrLen(MapName)+1);
|
||||
}
|
||||
|
||||
FreePool(MapName);
|
||||
if (DevicePathCopyForFree != NULL) {
|
||||
|
Reference in New Issue
Block a user