[PATCH] mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() (Coverity).

Józef Kucia jkucia at codeweavers.com
Fri Nov 30 04:19:51 CST 2018


Signed-off-by: Józef Kucia <jkucia at 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




More information about the wine-devel mailing list