mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcFileLib: Fix parameter order for alignment check
This commit is contained in:
parent
699e0d82be
commit
4795e55e01
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user