[PATCH] mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() (Coverity).
30 Nov
2018
30 Nov
'18
10:19 a.m.
Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> --- dlls/mfplat/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c index 83afb940517f..c7c346512f79 100644 --- a/dlls/mfplat/main.c +++ b/dlls/mfplat/main.c @@ -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; -- 2.18.1
2570
Age (days ago)
2570
Last active (days ago)
0 comments
1 participants
participants (1)
-
Józef Kucia