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 ...@@ -1022,9 +1022,9 @@ static HRESULT WINAPI TextStoreACPServices_CreateRange(ITextStoreACPServices *if
{ {
Context *This = impl_from_ITextStoreACPServices(iface); 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 = static const ITextStoreACPServicesVtbl TextStoreACPServicesVtbl =
......
...@@ -249,13 +249,11 @@ static HRESULT WINAPI TextStoreACP_AdviseSink(ITextStoreACP *iface, ...@@ -249,13 +249,11 @@ static HRESULT WINAPI TextStoreACP_AdviseSink(ITextStoreACP *iface,
range = NULL; range = NULL;
hr = ITextStoreACPServices_CreateRange(services, 0, 1, &range); hr = ITextStoreACPServices_CreateRange(services, 0, 1, &range);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr); ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
if (range)
{
hr = ITfRangeACP_GetContext(range, &context); hr = ITfRangeACP_GetContext(range, &context);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr); ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ITfContext_Release(context); ITfContext_Release(context);
ITfRangeACP_Release(range); ITfRangeACP_Release(range);
}
ITextStoreACPServices_Release(services); 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