msvfw32: Fix the size of previous compressed buffer.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8701f92e8d
commit
d733e0d243
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue