rEFIt_UEFI/libeg/lodepng.cpp
/* NOTE: when realloc returns NULL, it leaves the original memory untouched */
when realloc returns NULL, it leaves the original memory untouched
when realloc returns NULL it leaves the original memory untouched
void* lodepng_realloc(void* ptr, size_t old_size, size_t new_size) {
#ifdef LODEPNG_MAX_ALLOC
  if(new_size > LODEPNG_MAX_ALLOC) return 0;
#endif
  return ReallocatePool(old_size, new_size, ptr);
}
void * lodepng_realloc ( void * ptr , size_t old_size , size_t new_size ) { #ifdef LODEPNG_MAX_ALLOC if ( new_size > LODEPNG_MAX_ALLOC ) return 0 ; #endif return ReallocatePool ( old_size , new_size , ptr ) ; }
NOTE: when realloc returns NULL, it leaves the original memory untouched
NOTE : when realloc returns NULL it leaves the original memory untouched