1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +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:
Esme Povirk 2022-05-21 15:17:35 -05:00 committed by Alexandre Julliard
parent a6f924f3b8
commit 5aa05728a5

View File

@ -271,7 +271,7 @@ static HRESULT CDECL wmp_decoder_copy_pixels(struct decoder *iface, UINT frame,
pkrect.Width = This->frame.width;
pkrect.Height = This->frame.height;
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;
if (This->decoder->Copy(This->decoder, &pkrect, frame_data, stride))
{