Bruno Jesus : msvfw32: Fix the size of previous compressed buffer.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 20 11:28:29 CDT 2015
Module: wine
Branch: master
Commit: d733e0d24302b50eb9403e64a34d574fca80f650
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d733e0d24302b50eb9403e64a34d574fca80f650
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Tue Oct 20 14:56:10 2015 +0800
msvfw32: Fix the size of previous compressed buffer.
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvfw32/msvideo_main.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/msvfw32/msvideo_main.c b/dlls/msvfw32/msvideo_main.c
index b4c22ae..1c38b75 100644
--- a/dlls/msvfw32/msvideo_main.c
+++ b/dlls/msvfw32/msvideo_main.c
@@ -1436,9 +1436,6 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
return FALSE;
*pc->lpbiIn = *lpbiIn;
- pc->lpBitsPrev = HeapAlloc(GetProcessHeap(), 0, pc->lpbiIn->bmiHeader.biSizeImage);
- if (!pc->lpBitsPrev)
- goto error;
pc->lpState = HeapAlloc(GetProcessHeap(), 0, sizeof(ICCOMPRESS));
if (!pc->lpState)
@@ -1446,10 +1443,16 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
pc->cbState = sizeof(ICCOMPRESS);
+ /* Buffer for compressed frame data */
pc->lpBitsOut = HeapAlloc(GetProcessHeap(), 0, pc->lpbiOut->bmiHeader.biSizeImage);
if (!pc->lpBitsOut)
goto error;
+ /* Buffer for previous compressed frame data */
+ pc->lpBitsPrev = HeapAlloc(GetProcessHeap(), 0, pc->lpbiOut->bmiHeader.biSizeImage);
+ if (!pc->lpBitsPrev)
+ goto error;
+
TRACE("Compvars:\n"
"\tpc:\n"
"\tsize: %i\n"
More information about the wine-cvs
mailing list