Kernel - Fixed heap returning (void*)-1 instead of NULL on error
[tpg/acess2.git] / KernelLand / Kernel / heap.c
index 4c7ffd9..af2bde4 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au