mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
User/BaseMemoryLib: Fix aligned page alloc
This commit is contained in:
parent
fb43d90309
commit
2bcc3cbd7f
@ -231,6 +231,10 @@ InternalAllocatePagesAlign (
|
||||
// Check that we have not gone beyond the single allocation size limit
|
||||
//
|
||||
if (RequestedAllocationSize <= mPoolAllocationSizeLimit) {
|
||||
if (Alignment < EFI_PAGE_SIZE) {
|
||||
Alignment = EFI_PAGE_SIZE;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
Buffer = _aligned_malloc (RequestedAllocationSize, Alignment);
|
||||
#else // !_WIN32
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user