Commit 5a9d74a3 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mapi32: COM cleanup for the IMalloc iface.

parent 591b5942
......@@ -41,11 +41,11 @@ static const IMallocVtbl MAPI_IMalloc_vt;
typedef struct
{
const IMallocVtbl *lpVtbl;
IMalloc IMalloc_iface;
LONG lRef;
} MAPI_IMALLOC;
static MAPI_IMALLOC MAPI_IMalloc = { &MAPI_IMalloc_vt, 0u };
static MAPI_IMALLOC MAPI_IMalloc = { { &MAPI_IMalloc_vt }, 0 };
extern LONG MAPI_ObjectCount; /* In mapi32_main.c */
......@@ -67,8 +67,8 @@ LPMALLOC WINAPI MAPIGetDefaultMalloc(void)
if (mapiFunctions.MAPIGetDefaultMalloc)
return mapiFunctions.MAPIGetDefaultMalloc();
IMalloc_AddRef((LPMALLOC)&MAPI_IMalloc);
return (LPMALLOC)&MAPI_IMalloc;
IMalloc_AddRef(&MAPI_IMalloc.IMalloc_iface);
return &MAPI_IMalloc.IMalloc_iface;
}
/**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment