Henri Verbeet : avifil32: Just assign maxSize to This-> cbBuffer in AVIFILE_ReadBlock().
Alexandre Julliard
julliard at winehq.org
Tue Jan 5 11:37:51 CST 2010
Module: wine
Branch: master
Commit: 1fb72a37eb350993a4335cfc790be75f5bce1b72
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1fb72a37eb350993a4335cfc790be75f5bce1b72
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Jan 4 21:33:13 2010 +0100
avifil32: Just assign maxSize to This->cbBuffer in AVIFILE_ReadBlock().
---
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 */
More information about the wine-cvs
mailing list