From 35a4b7dc0e78c8447ef1b0f28f8f3006bc49fd2f Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Mon, 27 Feb 2012 15:39:11 +0400 Subject: [PATCH] msvcr90: realloc can move memory block. --- dlls/msvcr90/msvcr90.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcr90/msvcr90.c b/dlls/msvcr90/msvcr90.c index 6b97e2f12e..663dd372be 100644 --- a/dlls/msvcr90/msvcr90.c +++ b/dlls/msvcr90/msvcr90.c @@ -192,7 +192,7 @@ void* CDECL _recalloc(void* mem, size_t num, size_t 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; }