shell32: Avoid the forward declaration of the IEnumIDList vtbl.

This commit is contained in:
Michael Stefaniuc 2011-10-10 00:55:51 +02:00 committed by Alexandre Julliard
parent b8638ef9ef
commit 8d1fc3b486
1 changed files with 17 additions and 25 deletions

View File

@ -53,8 +53,6 @@ typedef struct
} IEnumIDListImpl;
static const IEnumIDListVtbl eidlvt;
/**************************************************************************
* AddToEnumList()
*/
@ -185,29 +183,6 @@ static inline IEnumIDListImpl *impl_from_IEnumIDList(IEnumIDList *iface)
return CONTAINING_RECORD(iface, IEnumIDListImpl, IEnumIDList_iface);
}
/**************************************************************************
* IEnumIDList_Folder_Constructor
*
*/
IEnumIDList * IEnumIDList_Constructor(void)
{
IEnumIDListImpl *lpeidl = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY, sizeof(IEnumIDListImpl));
if (lpeidl)
{
lpeidl->ref = 1;
lpeidl->IEnumIDList_iface.lpVtbl = &eidlvt;
}
else
return NULL;
TRACE("-- (%p)->()\n",lpeidl);
return &lpeidl->IEnumIDList_iface;
}
/**************************************************************************
* IEnumIDList::QueryInterface
*/
@ -365,3 +340,20 @@ static const IEnumIDListVtbl eidlvt =
IEnumIDList_fnReset,
IEnumIDList_fnClone,
};
IEnumIDList *IEnumIDList_Constructor(void)
{
IEnumIDListImpl *lpeidl = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*lpeidl));
if (lpeidl)
{
lpeidl->ref = 1;
lpeidl->IEnumIDList_iface.lpVtbl = &eidlvt;
}
else
return NULL;
TRACE("-- (%p)->()\n",lpeidl);
return &lpeidl->IEnumIDList_iface;
}