Skip to content

Commit

Permalink
OcFileLib: Fix Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Aug 19, 2023
1 parent c70ad78 commit d3f5845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/OcFileLib/DiskMisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ OcDiskReadElTorito (
//
// TODO: Unclear whether the sector size here is the native CD size 2048 or 512.
//
BootBufferSize = CdNode->PartitionSize * DiskContext.BlockSize;
BootBufferSize = (UINTN)(CdNode->PartitionSize * DiskContext.BlockSize);
BootBuffer = AllocatePool (BootBufferSize);
if (BootBuffer == NULL) {
return EFI_OUT_OF_RESOURCES;
Expand Down

0 comments on commit d3f5845

Please sign in to comment.