Commit 1b11ffaa authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msxml3: Use an iface instead of a vtbl pointer in domfrag.

parent 42bdbab6
......@@ -40,13 +40,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef struct _domfrag
{
xmlnode node;
const struct IXMLDOMDocumentFragmentVtbl *lpVtbl;
IXMLDOMDocumentFragment IXMLDOMDocumentFragment_iface;
LONG ref;
} domfrag;
static inline domfrag *impl_from_IXMLDOMDocumentFragment( IXMLDOMDocumentFragment *iface )
{
return (domfrag *)((char*)iface - FIELD_OFFSET(domfrag, lpVtbl));
return CONTAINING_RECORD(iface, domfrag, IXMLDOMDocumentFragment_iface);
}
static HRESULT WINAPI domfrag_QueryInterface(
......@@ -170,8 +170,8 @@ static HRESULT WINAPI domfrag_Invoke(
hr = get_typeinfo(IXMLDOMDocumentFragment_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &(This->lpVtbl), dispIdMember, wFlags, pDispParams,
pVarResult, pExcepInfo, puArgErr);
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMDocumentFragment_iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
......@@ -588,12 +588,12 @@ IUnknown* create_doc_fragment( xmlNodePtr fragment )
if ( !This )
return NULL;
This->lpVtbl = &domfrag_vtbl;
This->IXMLDOMDocumentFragment_iface.lpVtbl = &domfrag_vtbl;
This->ref = 1;
init_xmlnode(&This->node, fragment, (IXMLDOMNode*)&This->lpVtbl, NULL);
init_xmlnode(&This->node, fragment, (IXMLDOMNode*)&This->IXMLDOMDocumentFragment_iface, NULL);
return (IUnknown*) &This->lpVtbl;
return (IUnknown*)&This->IXMLDOMDocumentFragment_iface;
}
#endif
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