mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
wmphoto: Zero user buffer before calling jxrlib Copy.
Signed-off-by: Esme Povirk <esme@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51788
This commit is contained in:
parent
a6f924f3b8
commit
5aa05728a5
|
@ -271,7 +271,7 @@ static HRESULT CDECL wmp_decoder_copy_pixels(struct decoder *iface, UINT frame,
|
||||||
pkrect.Width = This->frame.width;
|
pkrect.Width = This->frame.width;
|
||||||
pkrect.Height = This->frame.height;
|
pkrect.Height = This->frame.height;
|
||||||
This->frame_stride = (This->frame.width * This->frame.bpp + 7) / 8;
|
This->frame_stride = (This->frame.width * This->frame.bpp + 7) / 8;
|
||||||
if (!(frame_data = RtlAllocateHeap(GetProcessHeap(), 0, This->frame.height * This->frame_stride)))
|
if (!(frame_data = RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, This->frame.height * This->frame_stride)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
if (This->decoder->Copy(This->decoder, &pkrect, frame_data, stride))
|
if (This->decoder->Copy(This->decoder, &pkrect, frame_data, stride))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue