summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-02 02:27:07 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-02 02:27:07 +0000
commit9e9f86ecb6e6b596efebf024ac737c8d56dbb86f (patch)
treea27ab87053dc8cb50e68066c68f44c394806ffc3 /MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
parent5755841f2a748fe0a1598f1f8b3a257fc577d48f (diff)
downloadedk2-platforms-9e9f86ecb6e6b596efebf024ac737c8d56dbb86f.tar.xz
Modified for use reversion field and fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8006 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c')
-rw-r--r--MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c b/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
index 5d06444784..401facf475 100644
--- a/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
+++ b/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
@@ -599,10 +599,10 @@ PartitionInstallChildHandle (
Private->ParentBlockIo = ParentBlockIo;
Private->DiskIo = ParentDiskIo;
- Private->BlockIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION;
+ Private->BlockIo.Revision = ParentBlockIo->Revision;
Private->BlockIo.Media = &Private->Media;
- CopyMem (Private->BlockIo.Media, ParentBlockIo->Media, sizeof (EFI_BLOCK_IO_MEDIA));
+ CopyMem (Private->BlockIo.Media, ParentBlockIo->Media, SIZE_OF_EFI_BLOCK_IO_MEDIA_REV1);
Private->Media.LogicalPartition = TRUE;
Private->Media.LastBlock = DivU64x32 (
MultU64x32 (