Józef Kucia : mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() ( Coverity).
Module: wine Branch: master Commit: 7176f9b2d2053b0b6a6f0dcc5d4a7d337ce4eb68 URL: https://source.winehq.org/git/wine.git/?a=commit;h=7176f9b2d2053b0b6a6f0dcc5... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Fri Nov 30 11:19:51 2018 +0100 mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() (Coverity). Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 83afb94..c7c3465 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;
participants (1)
-
Alexandre Julliard