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);
|
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);
|
range = get_layout_range_by_pos(layout, position);
|
||||||
*object = range->object;
|
*object = range->object;
|
||||||
if (*object)
|
if (*object)
|
||||||
|
|
|
@ -6224,10 +6224,8 @@ todo_wine
|
||||||
object = NULL;
|
object = NULL;
|
||||||
hr = IDWriteTextLayout_GetInlineObject(layout, 10, &object, &range);
|
hr = IDWriteTextLayout_GetInlineObject(layout, 10, &object, &range);
|
||||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||||
todo_wine
|
|
||||||
ok(range.startPosition == 10 && range.length == ~0u - 10, "Unexpected range (%u, %u).\n",
|
ok(range.startPosition == 10 && range.length == ~0u - 10, "Unexpected range (%u, %u).\n",
|
||||||
range.startPosition, range.length);
|
range.startPosition, range.length);
|
||||||
if (object)
|
|
||||||
IDWriteInlineObject_Release(object);
|
IDWriteInlineObject_Release(object);
|
||||||
|
|
||||||
range.startPosition = 0;
|
range.startPosition = 0;
|
||||||
|
|
Loading…
Reference in New Issue