Commit ed673ff9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

riched20: Use helpers from header instead of internal functions.

parent 9997ef3f
...@@ -300,7 +300,7 @@ IRichEditOle_fnGetClientSite(IRichEditOle *me, ...@@ -300,7 +300,7 @@ IRichEditOle_fnGetClientSite(IRichEditOle *me,
if(!lplpolesite) if(!lplpolesite)
return E_INVALIDARG; return E_INVALIDARG;
*lplpolesite = &This->clientSite->IOleClientSite_iface; *lplpolesite = &This->clientSite->IOleClientSite_iface;
IOleClientSite_fnAddRef(*lplpolesite); IOleClientSite_AddRef(*lplpolesite);
return S_OK; return S_OK;
} }
...@@ -448,21 +448,21 @@ ITextDocument_fnQueryInterface(ITextDocument* me, REFIID riid, ...@@ -448,21 +448,21 @@ ITextDocument_fnQueryInterface(ITextDocument* me, REFIID riid,
void** ppvObject) void** ppvObject)
{ {
IRichEditOleImpl *This = impl_from_ITextDocument(me); IRichEditOleImpl *This = impl_from_ITextDocument(me);
return IRichEditOle_fnQueryInterface(&This->IRichEditOle_iface, riid, ppvObject); return IRichEditOle_QueryInterface(&This->IRichEditOle_iface, riid, ppvObject);
} }
static ULONG WINAPI static ULONG WINAPI
ITextDocument_fnAddRef(ITextDocument* me) ITextDocument_fnAddRef(ITextDocument* me)
{ {
IRichEditOleImpl *This = impl_from_ITextDocument(me); IRichEditOleImpl *This = impl_from_ITextDocument(me);
return IRichEditOle_fnAddRef(&This->IRichEditOle_iface); return IRichEditOle_AddRef(&This->IRichEditOle_iface);
} }
static ULONG WINAPI static ULONG WINAPI
ITextDocument_fnRelease(ITextDocument* me) ITextDocument_fnRelease(ITextDocument* me)
{ {
IRichEditOleImpl *This = impl_from_ITextDocument(me); IRichEditOleImpl *This = impl_from_ITextDocument(me);
return IRichEditOle_fnRelease(&This->IRichEditOle_iface); return IRichEditOle_Release(&This->IRichEditOle_iface);
} }
static HRESULT WINAPI static HRESULT WINAPI
......
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