qedit: Implement IAMTimelineObj_GetTimelineNoRef and add tests.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bebc10c625
commit
d10c5b4ac2
|
@ -91,6 +91,14 @@ static void test_timeline(void)
|
||||||
else
|
else
|
||||||
ok(hr == E_INVALIDARG, "Expected E_INVALIDARG got %08x\n", hr);
|
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)
|
START_TEST(timeline)
|
||||||
|
|
|
@ -737,9 +737,12 @@ static HRESULT WINAPI TimelineObj_RemoveAll(IAMTimelineObj *iface)
|
||||||
|
|
||||||
static HRESULT WINAPI TimelineObj_GetTimelineNoRef(IAMTimelineObj *iface, IAMTimeline **timeline)
|
static HRESULT WINAPI TimelineObj_GetTimelineNoRef(IAMTimelineObj *iface, IAMTimeline **timeline)
|
||||||
{
|
{
|
||||||
|
/* MSDN says that this function is "not supported" */
|
||||||
TimelineObjImpl *This = impl_from_IAMTimelineObj(iface);
|
TimelineObjImpl *This = impl_from_IAMTimelineObj(iface);
|
||||||
FIXME("(%p)->(%p): not implemented!\n", This, timeline);
|
TRACE("(%p)->(%p)\n", This, timeline);
|
||||||
return E_NOTIMPL;
|
if (!timeline) return E_POINTER;
|
||||||
|
*timeline = NULL;
|
||||||
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI TimelineObj_GetGroupIBelongTo(IAMTimelineObj *iface, IAMTimelineGroup **group)
|
static HRESULT WINAPI TimelineObj_GetGroupIBelongTo(IAMTimelineObj *iface, IAMTimelineGroup **group)
|
||||||
|
|
Loading…
Reference in New Issue