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:
Nikolay Sivov 2020-03-19 15:07:41 +03:00 committed by Alexandre Julliard
parent 2863eb0251
commit a6a992d2fd
1 changed files with 1 additions and 1 deletions

View File

@ -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;