From: John Hodge Date: Tue, 7 Aug 2012 08:40:29 +0000 (+0800) Subject: Kernel - Fixed heap returning (void*)-1 instead of NULL on error X-Git-Tag: rel0.15~706^2~66 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=603cb55f1a4c20d28b8d4487d5bab032c8d47036;p=tpg%2Facess2.git Kernel - Fixed heap returning (void*)-1 instead of NULL on error --- diff --git a/KernelLand/Kernel/heap.c b/KernelLand/Kernel/heap.c index 4c7ffd95..af2bde49 100644 --- a/KernelLand/Kernel/heap.c +++ b/KernelLand/Kernel/heap.c @@ -153,8 +153,8 @@ void *Heap_Allocate(const char *File, int Line, size_t __Bytes) size_t Bytes; if( __Bytes == 0 ) { - //return NULL; // TODO: Return a known un-mapped range. - return INVLPTR; + return NULL; // TODO: Return a known un-mapped range. +// return INVLPTR; } // Get required size