[PATCH 4/5] avifil32: Just assign maxSize to This->cbBuffer in AVIFILE_ReadBlock().

Henri Verbeet hverbeet at codeweavers.com
Mon Jan 4 14:33:13 CST 2010


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

diff --git a/dlls/avifil32/avifile.c b/dlls/avifil32/avifile.c
index 2486611..2d39659 100644
--- a/dlls/avifil32/avifile.c
+++ b/dlls/avifil32/avifile.c
@@ -2036,7 +2036,7 @@ static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
 	This->lpBuffer = HeapReAlloc(GetProcessHeap(), 0, This->lpBuffer, maxSize);
       if (This->lpBuffer == NULL)
 	return AVIERR_MEMORY;
-      This->cbBuffer = max(size, This->sInfo.dwSuggestedBufferSize);
+      This->cbBuffer = maxSize;
     }
 
     /* now read the complete chunk into our buffer */
-- 
1.6.4.4




More information about the wine-patches mailing list