diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-27 04:03:40 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-27 04:03:40 +0000 |
commit | 7059dad90457cda5074783411fbe9b513c7c9ae3 (patch) | |
tree | 7d73779974c47b012d5861e518a817db28d861b0 /MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c | |
parent | 1cea34d4a8470f6dcac35aff54fd53b8b41f0f2c (diff) | |
download | edk2-platforms-7059dad90457cda5074783411fbe9b513c7c9ae3.tar.xz |
Fix the bug that the "Offset" parameter for DiskIo protocol should be byte-oriented.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8175 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c')
-rw-r--r-- | MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c b/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c index 9229a8cbe7..342e186191 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c @@ -100,7 +100,7 @@ PartitionInstallElToritoChildHandles ( Status = DiskIo->ReadDisk (
DiskIo,
Media->MediaId,
- VolDescriptorLba,
+ MultU64x32 (VolDescriptorLba, Media->BlockSize),
Media->BlockSize,
VolDescriptor
);
@@ -143,7 +143,7 @@ PartitionInstallElToritoChildHandles ( Status = DiskIo->ReadDisk (
DiskIo,
Media->MediaId,
- Lba,
+ MultU64x32 (Lba, Media->BlockSize),
Media->BlockSize,
Catalog
);
|