OcFileLib: Fix parameter order for alignment check

This commit is contained in:
vit9696 2020-03-07 19:20:41 +03:00
parent 699e0d82be
commit 4795e55e01

View File

@ -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);