Aric Stewart : msctf: Implement ITfDocumentMgr::GetBase.

Alexandre Julliard julliard at winehq.org
Tue Feb 3 09:13:26 CST 2009


Module: wine
Branch: master
Commit: e1014b3ea4e2d7210f807d73fd203157344171dc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e1014b3ea4e2d7210f807d73fd203157344171dc

Author: Aric Stewart <aric at codeweavers.com>
Date:   Mon Feb  2 10:25:30 2009 -0600

msctf: Implement ITfDocumentMgr::GetBase.

---

 dlls/msctf/documentmgr.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dlls/msctf/documentmgr.c b/dlls/msctf/documentmgr.c
index c8c6e92..9551999 100644
--- a/dlls/msctf/documentmgr.c
+++ b/dlls/msctf/documentmgr.c
@@ -172,8 +172,16 @@ static HRESULT WINAPI DocumentMgr_GetTop(ITfDocumentMgr *iface, ITfContext **ppi
 static HRESULT WINAPI DocumentMgr_GetBase(ITfDocumentMgr *iface, ITfContext **ppic)
 {
     DocumentMgr *This = (DocumentMgr *)iface;
-    FIXME("STUB:(%p)\n",This);
-    return E_NOTIMPL;
+    TRACE("(%p)\n",This);
+    if (!ppic)
+        return E_INVALIDARG;
+
+    if (This->contextStack[1])
+        ITfContext_AddRef(This->contextStack[1]);
+
+    *ppic = This->contextStack[1];
+
+    return S_OK;
 }
 
 static HRESULT WINAPI DocumentMgr_EnumContexts(ITfDocumentMgr *iface, IEnumTfContexts **ppEnum)




More information about the wine-cvs mailing list