smbiosview - add user input verification.
HexEdit/Edit - More user input verification for HexEdit. - updated title bar refreshment. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11448 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -219,6 +219,7 @@ Returns:
|
||||
{
|
||||
CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
||||
EFI_DEVICE_PATH_PROTOCOL *DupDevicePath;
|
||||
EFI_DEVICE_PATH_PROTOCOL *DupDevicePathForFree;
|
||||
EFI_HANDLE Handle;
|
||||
EFI_BLOCK_IO_PROTOCOL *BlkIo;
|
||||
EFI_STATUS Status;
|
||||
@ -241,11 +242,12 @@ Returns:
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
DupDevicePath = DuplicateDevicePath(DevicePath);
|
||||
DupDevicePathForFree = DupDevicePath;
|
||||
//
|
||||
// get blkio interface
|
||||
//
|
||||
Status = gBS->LocateDevicePath(&gEfiBlockIoProtocolGuid,&DupDevicePath,&Handle);
|
||||
FreePool(DupDevicePath);
|
||||
FreePool(DupDevicePathForFree);
|
||||
if (EFI_ERROR (Status)) {
|
||||
StatusBarSetStatusString (L"Read Disk Failed");
|
||||
return Status;
|
||||
|
Reference in New Issue
Block a user