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
|
typedef struct
|
||||||
{
|
{
|
||||||
const IMallocVtbl *lpVtbl;
|
IMalloc IMalloc_iface;
|
||||||
LONG lRef;
|
LONG lRef;
|
||||||
} MAPI_IMALLOC;
|
} 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 */
|
extern LONG MAPI_ObjectCount; /* In mapi32_main.c */
|
||||||
|
|
||||||
|
@ -67,8 +67,8 @@ LPMALLOC WINAPI MAPIGetDefaultMalloc(void)
|
||||||
if (mapiFunctions.MAPIGetDefaultMalloc)
|
if (mapiFunctions.MAPIGetDefaultMalloc)
|
||||||
return mapiFunctions.MAPIGetDefaultMalloc();
|
return mapiFunctions.MAPIGetDefaultMalloc();
|
||||||
|
|
||||||
IMalloc_AddRef((LPMALLOC)&MAPI_IMalloc);
|
IMalloc_AddRef(&MAPI_IMalloc.IMalloc_iface);
|
||||||
return (LPMALLOC)&MAPI_IMalloc;
|
return &MAPI_IMalloc.IMalloc_iface;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue