This commit is contained in:
Julian Barathieu 2020-01-20 19:17:05 +01:00
parent a8035052a9
commit 3bba87c227
1 changed files with 1 additions and 1 deletions

View File

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