Commit 8d1fc3b4 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

shell32: Avoid the forward declaration of the IEnumIDList vtbl.

parent b8638ef9
...@@ -53,8 +53,6 @@ typedef struct ...@@ -53,8 +53,6 @@ typedef struct
} IEnumIDListImpl; } IEnumIDListImpl;
static const IEnumIDListVtbl eidlvt;
/************************************************************************** /**************************************************************************
* AddToEnumList() * AddToEnumList()
*/ */
...@@ -186,29 +184,6 @@ static inline IEnumIDListImpl *impl_from_IEnumIDList(IEnumIDList *iface) ...@@ -186,29 +184,6 @@ static inline IEnumIDListImpl *impl_from_IEnumIDList(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 * IEnumIDList::QueryInterface
*/ */
static HRESULT WINAPI IEnumIDList_fnQueryInterface(IEnumIDList *iface, REFIID riid, void **ppvObj) static HRESULT WINAPI IEnumIDList_fnQueryInterface(IEnumIDList *iface, REFIID riid, void **ppvObj)
...@@ -365,3 +340,20 @@ static const IEnumIDListVtbl eidlvt = ...@@ -365,3 +340,20 @@ static const IEnumIDListVtbl eidlvt =
IEnumIDList_fnReset, IEnumIDList_fnReset,
IEnumIDList_fnClone, 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;
}
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