Alexander Morozov : msvcr90: realloc can move memory block.

Alexandre Julliard julliard at winehq.org
Mon Feb 27 11:27:02 CST 2012


Module: wine
Branch: master
Commit: 35a4b7dc0e78c8447ef1b0f28f8f3006bc49fd2f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=35a4b7dc0e78c8447ef1b0f28f8f3006bc49fd2f

Author: Alexander Morozov <amorozov at etersoft.ru>
Date:   Mon Feb 27 15:39:11 2012 +0400

msvcr90: realloc can move memory block.

---

 dlls/msvcr90/msvcr90.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcr90/msvcr90.c b/dlls/msvcr90/msvcr90.c
index 6b97e2f..663dd37 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;
 }
 




More information about the wine-cvs mailing list