From: Alex Henrie alexhenrie24@gmail.com
--- dlls/msado15/stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/msado15/stream.c b/dlls/msado15/stream.c index 50833aecf34..5e02fc63839 100644 --- a/dlls/msado15/stream.c +++ b/dlls/msado15/stream.c @@ -182,8 +182,7 @@ static HRESULT resize_buffer( struct stream *stream, LONG size ) { BYTE *tmp; LONG new_size = max( size, stream->allocated * 2 ); - if (!(tmp = realloc( stream->buf, new_size ))) return E_OUTOFMEMORY; - memset( tmp + stream->allocated, 0, new_size - stream->allocated ); + if (!(tmp = _recalloc( stream->buf, 1, new_size ))) return E_OUTOFMEMORY; stream->buf = tmp; stream->allocated = new_size; }