compobj: Reference the returned IMalloc pointer in CoGetMalloc().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42554
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-01-15 00:24:32 -06:00 committed by Alexandre Julliard
parent 588af8ca85
commit 9af935a519
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ DWORD WINAPI CoBuildVersion16(void)
*/
HRESULT WINAPI CoGetMalloc16(MEMCTX context, SEGPTR *malloc)
{
*malloc = compobj_malloc;
call_IMalloc_AddRef(*malloc = compobj_malloc);
return S_OK;
}