Merge branch 'BetterTerm' into BetterPaging
This commit is contained in:
commit
bee9793a8b
|
@ -36,7 +36,11 @@ void *malloc(size_t n)
|
|||
void *ptr;
|
||||
error_t rc;
|
||||
|
||||
#ifndef _KALEID_KERNEL
|
||||
rc = KalAllocMemory(&ptr, n);
|
||||
#else
|
||||
rc = KalAllocMemoryEx(&ptr, n, M_ZEROED, 0);
|
||||
#endif
|
||||
if (rc > 0) seterrno(rc);
|
||||
|
||||
return ptr;
|
||||
|
|
Loading…
Reference in New Issue