dwrite/layout: Remove unnecessary argument check from GetInlineObject().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7129b3e14d
commit
352df11516
|
@ -3542,9 +3542,6 @@ static HRESULT WINAPI dwritetextlayout_GetInlineObject(IDWriteTextLayout4 *iface
|
|||
|
||||
TRACE("%p, %u, %p, %p.\n", iface, position, object, r);
|
||||
|
||||
if (position >= layout->len)
|
||||
return S_OK;
|
||||
|
||||
range = get_layout_range_by_pos(layout, position);
|
||||
*object = range->object;
|
||||
if (*object)
|
||||
|
|
|
@ -6224,11 +6224,9 @@ todo_wine
|
|||
object = NULL;
|
||||
hr = IDWriteTextLayout_GetInlineObject(layout, 10, &object, &range);
|
||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||
todo_wine
|
||||
ok(range.startPosition == 10 && range.length == ~0u - 10, "Unexpected range (%u, %u).\n",
|
||||
range.startPosition, range.length);
|
||||
if (object)
|
||||
IDWriteInlineObject_Release(object);
|
||||
IDWriteInlineObject_Release(object);
|
||||
|
||||
range.startPosition = 0;
|
||||
range.length = ~0u;
|
||||
|
|
Loading…
Reference in New Issue