Fix Replace_memcpy crash

Fix Replace_memcpy crash in #5496
if do not yse Replace_memcpy,the game still have problem
![1](https://cloud.githubusercontent.com/assets/2177532/3209287/87485fba-ee65-11e3-9762-a1249d60e864.png)