mapi32: COM cleanup for the IMalloc iface.

oldstable
Michael Stefaniuc 2011-01-24 00:19:29 +01:00 committed by Alexandre Julliard
parent 591b59420d
commit 5a9d74a333
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
/**************************************************************************