mfplat: Zero-initialize buffer memory.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2863eb0251
commit
a6a992d2fd
|
@ -503,7 +503,7 @@ static const IMF2DBuffer2Vtbl memory_2d_buffer_vtbl =
|
||||||
static HRESULT memory_buffer_init(struct memory_buffer *buffer, DWORD max_length, DWORD alignment,
|
static HRESULT memory_buffer_init(struct memory_buffer *buffer, DWORD max_length, DWORD alignment,
|
||||||
const IMFMediaBufferVtbl *vtbl)
|
const IMFMediaBufferVtbl *vtbl)
|
||||||
{
|
{
|
||||||
buffer->data = heap_alloc(ALIGN_SIZE(max_length, alignment));
|
buffer->data = heap_alloc_zero(ALIGN_SIZE(max_length, alignment));
|
||||||
if (!buffer->data)
|
if (!buffer->data)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue