fix mistake in location of return

This commit is contained in:
YamaArashi 2016-01-03 19:19:38 -08:00
parent c013862b69
commit bc8a55565b

View File

@ -79,11 +79,11 @@ void *AllocInternal(void *heapStart, u32 size)
if (splitBlock->next != head)
splitBlock->next->prev = splitBlock;
}
return pos->data;
}
}
}
if (pos->next == head)
return NULL;