Aric Stewart : msctf: Implement ITfDocumentMgr::GetTop.
Alexandre Julliard
julliard at winehq.org
Tue Feb 3 09:13:25 CST 2009
Module: wine
Branch: master
Commit: 130303bcea5e315810d27e9cf224c6984da17a66
URL: http://source.winehq.org/git/wine.git/?a=commit;h=130303bcea5e315810d27e9cf224c6984da17a66
Author: Aric Stewart <aric at codeweavers.com>
Date: Mon Feb 2 10:25:22 2009 -0600
msctf: Implement ITfDocumentMgr::GetTop.
---
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 040db7b..c8c6e92 100644
--- a/dlls/msctf/documentmgr.c
+++ b/dlls/msctf/documentmgr.c
@@ -157,8 +157,16 @@ static HRESULT WINAPI DocumentMgr_Pop(ITfDocumentMgr *iface, DWORD dwFlags)
static HRESULT WINAPI DocumentMgr_GetTop(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[0])
+ ITfContext_AddRef(This->contextStack[0]);
+
+ *ppic = This->contextStack[0];
+
+ return S_OK;
}
static HRESULT WINAPI DocumentMgr_GetBase(ITfDocumentMgr *iface, ITfContext **ppic)
More information about the wine-cvs
mailing list