Aric Stewart : msctf: Implement ITfContext::GetStatus.
Alexandre Julliard
julliard at winehq.org
Wed Jun 24 09:22:55 CDT 2009
Module: wine
Branch: master
Commit: 190357b14ba498cb4504410069cd4bd0bfec1955
URL: http://source.winehq.org/git/wine.git/?a=commit;h=190357b14ba498cb4504410069cd4bd0bfec1955
Author: Aric Stewart <aric at codeweavers.com>
Date: Wed Jun 24 17:28:31 2009 +0900
msctf: Implement ITfContext::GetStatus.
---
dlls/msctf/context.c | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/dlls/msctf/context.c b/dlls/msctf/context.c
index e5cf602..e11a0e8 100644
--- a/dlls/msctf/context.c
+++ b/dlls/msctf/context.c
@@ -466,8 +466,25 @@ static HRESULT WINAPI Context_GetStatus (ITfContext *iface,
TF_STATUS *pdcs)
{
Context *This = (Context *)iface;
- FIXME("STUB:(%p)\n",This);
- return E_NOTIMPL;
+ TRACE("(%p) %p\n",This,pdcs);
+
+ if (!This->connected)
+ return TF_E_DISCONNECTED;
+
+ if (!pdcs)
+ return E_INVALIDARG;
+
+ if (!This->pITextStoreACP)
+ {
+ FIXME("Context does not have a ITextStoreACP\n");
+ return E_NOTIMPL;
+ }
+
+ ITextStoreACP_GetStatus(This->pITextStoreACP, &This->documentStatus);
+
+ *pdcs = This->documentStatus;
+
+ return S_OK;
}
static HRESULT WINAPI Context_GetProperty (ITfContext *iface,
More information about the wine-cvs
mailing list