diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c index 6805873..982276c 100644 --- a/dlls/riched20/richole.c +++ b/dlls/riched20/richole.c @@ -648,8 +648,14 @@ ITextDocument_fnRange(ITextDocument* me, LONG cp1, LONG cp2, ITextRange** ppRange) { IRichEditOleImpl *This = impl_from_ITextDocument(me); - FIXME("stub %p\n",This); - return E_NOTIMPL; + FIXME("dirty hack %p\n",This); + + if(!ppRange) + return E_INVALIDARG; + + *ppRange = (ITextRange *)&This->txtSel->ITextSelection_iface; + ITextSelection_AddRef(*(ITextSelection**)ppRange); + return S_OK; } static HRESULT WINAPI