mapi32: COM cleanup for the IMalloc iface.
This commit is contained in:
parent
591b59420d
commit
5a9d74a333
|
@ -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;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
|
Loading…
Reference in New Issue