msctf: Add ITextStoreACPServices::CreateRange().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-06-02 17:08:51 +03:00 committed by Alexandre Julliard
parent 2952219e83
commit 759ecd6e59
2 changed files with 7 additions and 9 deletions

View File

@ -1022,9 +1022,9 @@ static HRESULT WINAPI TextStoreACPServices_CreateRange(ITextStoreACPServices *if
{
Context *This = impl_from_ITextStoreACPServices(iface);
FIXME("stub: %p %d %d %p\n", This, start, end, range);
TRACE("%p, %d, %d, %p.\n", This, start, end, range);
return S_OK;
return Range_Constructor(&This->ITfContext_iface, start, end, (ITfRange **)range);
}
static const ITextStoreACPServicesVtbl TextStoreACPServicesVtbl =

View File

@ -249,13 +249,11 @@ static HRESULT WINAPI TextStoreACP_AdviseSink(ITextStoreACP *iface,
range = NULL;
hr = ITextStoreACPServices_CreateRange(services, 0, 1, &range);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
if (range)
{
hr = ITfRangeACP_GetContext(range, &context);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ITfContext_Release(context);
ITfRangeACP_Release(range);
}
hr = ITfRangeACP_GetContext(range, &context);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ITfContext_Release(context);
ITfRangeACP_Release(range);
ITextStoreACPServices_Release(services);