mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() (Coverity).

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-11-30 11:19:51 +01:00 committed by Alexandre Julliard
parent 837b4aa429
commit 7176f9b2d2
1 changed files with 1 additions and 1 deletions

View File

@ -1907,7 +1907,7 @@ static HRESULT WINAPI mfsourceresolver_CreateObjectFromByteStream(IMFSourceResol
{
mfsource *new_object;
new_object = HeapAlloc( GetProcessHeap(), 0, sizeof(*object) );
new_object = HeapAlloc( GetProcessHeap(), 0, sizeof(*new_object) );
if (!new_object)
return E_OUTOFMEMORY;