msvcr90: realloc can move memory block.
This commit is contained in:
parent
f8d6d0300b
commit
35a4b7dc0e
|
@ -192,7 +192,7 @@ void* CDECL _recalloc(void* mem, size_t num, size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(size>old_size)
|
if(size>old_size)
|
||||||
memset((BYTE*)mem+old_size, 0, size-old_size);
|
memset((BYTE*)ret+old_size, 0, size-old_size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue