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:
parent
2952219e83
commit
759ecd6e59
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue