Commit 352df115 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/layout: Remove unnecessary argument check from GetInlineObject().

parent 7129b3e1
......@@ -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;
......
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