=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() ( Coverity).
Alexandre Julliard
julliard at winehq.org
Fri Nov 30 14:34:41 CST 2018
Module: wine
Branch: master
Commit: 7176f9b2d2053b0b6a6f0dcc5d4a7d337ce4eb68
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7176f9b2d2053b0b6a6f0dcc5d4a7d337ce4eb68
Author: Józef Kucia <jkucia at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list