Module: wine Branch: refs/heads/master Commit: 33af76f991e08ff98499f55d2e9578471007e9ad URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=33af76f991e08ff98499f55d...
Author: Kevin Koltzau kevin@plop.org Date: Wed Feb 22 23:09:11 2006 -0500
riched20: Enable retrieving data through the ole interface.
---
dlls/riched20/richole.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c index db294e0..68492c9 100644 --- a/dlls/riched20/richole.c +++ b/dlls/riched20/richole.c @@ -138,8 +138,16 @@ IRichEditOle_fnGetClipboardData(IRichEdi DWORD reco, LPDATAOBJECT *lplpdataobj) { IRichEditOleImpl *This = (IRichEditOleImpl *)me; - FIXME("stub %p\n",This); - return E_NOTIMPL; + CHARRANGE tmpchrg; + + TRACE("(%p,%p,%ld)\n",This, lpchrg, reco); + if(!lplpdataobj) + return E_INVALIDARG; + if(!lpchrg) { + ME_GetSelection(This->editor, (int*)&tmpchrg.cpMin, (int*)&tmpchrg.cpMax); + lpchrg = &tmpchrg; + } + return ME_GetDataObject(This->editor, lpchrg, lplpdataobj); }
static LONG WINAPI IRichEditOle_fnGetLinkCount(IRichEditOle *me)