This commit is contained in:
parent
a8035052a9
commit
3bba87c227
|
@ -59,7 +59,7 @@ error_t KalAllocMemoryEx(void **ptr, size_t req, int flags, size_t align)
|
|||
KeStartPanic("KalAllocMemory: Out of memory");
|
||||
}
|
||||
|
||||
*ptr = (void *)brk;
|
||||
*ptr = (void *)_ALIGN_UP(brk, align);
|
||||
|
||||
if (flags & M_ZEROED) {
|
||||
memzero(*ptr, req);
|
||||
|
|
Loading…
Reference in New Issue