Commit d10c5b4a authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

qedit: Implement IAMTimelineObj_GetTimelineNoRef and add tests.

parent bebc10c6
......@@ -91,6 +91,14 @@ static void test_timeline(void)
else
ok(hr == E_INVALIDARG, "Expected E_INVALIDARG got %08x\n", hr);
}
hr = IAMTimelineObj_GetTimelineNoRef(obj, NULL);
ok(hr == E_POINTER, "Expected E_POINTER got %08x\n", hr);
timeline2 = (IAMTimeline *)0xdeadbeef;
hr = IAMTimelineObj_GetTimelineNoRef(obj, &timeline2);
ok(hr == E_NOINTERFACE, "Expected E_NOINTERFACE got %08x\n", hr);
ok(!timeline2, "Expected NULL got %p\n", timeline2);
}
START_TEST(timeline)
......
......@@ -737,9 +737,12 @@ static HRESULT WINAPI TimelineObj_RemoveAll(IAMTimelineObj *iface)
static HRESULT WINAPI TimelineObj_GetTimelineNoRef(IAMTimelineObj *iface, IAMTimeline **timeline)
{
/* MSDN says that this function is "not supported" */
TimelineObjImpl *This = impl_from_IAMTimelineObj(iface);
FIXME("(%p)->(%p): not implemented!\n", This, timeline);
return E_NOTIMPL;
TRACE("(%p)->(%p)\n", This, timeline);
if (!timeline) return E_POINTER;
*timeline = NULL;
return E_NOINTERFACE;
}
static HRESULT WINAPI TimelineObj_GetGroupIBelongTo(IAMTimelineObj *iface, IAMTimelineGroup **group)
......
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