From d3f5845bad964f9a05a560ecca8a19c1c3bbc43b Mon Sep 17 00:00:00 2001 From: John Davis Date: Sat, 19 Aug 2023 16:44:51 -0500 Subject: [PATCH] OcFileLib: Fix Windows builds --- Library/OcFileLib/DiskMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/OcFileLib/DiskMisc.c b/Library/OcFileLib/DiskMisc.c index 9008d8124b7..123abb76180 100644 --- a/Library/OcFileLib/DiskMisc.c +++ b/Library/OcFileLib/DiskMisc.c @@ -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;