On 11/16/21 17:51, Jinoh Kang wrote:
Make it return void * and accept size_t as the size.
Signed-off-by: Jinoh Kang jinoh.kang.kr@gmail.com
Hi Jinoh,
I think that now winegdb has been converted to PE format, you can instead convert all Heap* allocations to standard C allocations, and use realloc directly instead of the helper.
Regarding the errors, maybe add some assert calls if you like, although I don't think we usually use that or HEAP_GENERATE_EXCEPTIONS flag, and instead we just consider that if allocation returned NULL it should either be handled properly, or ignored and later access will cause exceptions.