Commit 759ecd6e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msctf: Add ITextStoreACPServices::CreateRange().

parent 2952219e
......@@ -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 =
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment