msctf: Implement ITfContext::GetStatus.

This commit is contained in:
Aric Stewart 2009-06-24 17:28:31 +09:00 committed by Alexandre Julliard
parent 2dca912aa9
commit 190357b14b
1 changed files with 19 additions and 2 deletions

View File

@ -466,8 +466,25 @@ static HRESULT WINAPI Context_GetStatus (ITfContext *iface,
TF_STATUS *pdcs)
{
Context *This = (Context *)iface;
FIXME("STUB:(%p)\n",This);
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,