From 4795e55e014f7d21d6d0d35dab9a2e7202be074c Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 7 Mar 2020 19:20:41 +0300 Subject: [PATCH] OcFileLib: Fix parameter order for alignment check --- Library/OcFileLib/GptPartitionEntry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/OcFileLib/GptPartitionEntry.c b/Library/OcFileLib/GptPartitionEntry.c index 16e71f22..8578a8b5 100644 --- a/Library/OcFileLib/GptPartitionEntry.c +++ b/Library/OcFileLib/GptPartitionEntry.c @@ -186,7 +186,7 @@ OcDiskRead ( // // Context block size is checked to be POT during initialization. // - if (EFI_ERROR (Status) && !OC_POT_ALIGNED (BufferSize, Context->BlockSize)) { + if (EFI_ERROR (Status) && !OC_POT_ALIGNED (Context->BlockSize, BufferSize)) { NewSize = ALIGN_VALUE (BufferSize, Context->BlockSize); NewBuffer = AllocatePool (NewSize);