Merged relocators in xnu-reloc

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-11-27 09:43:16 +01:00
commit b88e596bbd

View file

@ -41,6 +41,9 @@ PREFIX (realloc) (void *relocator, grub_size_t size)
{ {
char *playground; char *playground;
if (!relocator)
return PREFIX (alloc) (size);
playground = (char *) relocator - PRE_REGION_SIZE; playground = (char *) relocator - PRE_REGION_SIZE;
playground = grub_realloc (playground, size + MAX_OVERHEAD); playground = grub_realloc (playground, size + MAX_OVERHEAD);