comsvcs: Add Enum() for "new" moniker.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2ede7a5a74
commit
f1123366d1
|
@ -543,9 +543,14 @@ static HRESULT WINAPI new_moniker_ComposeWith(IMoniker *iface, IMoniker *mkRight
|
||||||
|
|
||||||
static HRESULT WINAPI new_moniker_Enum(IMoniker *iface, BOOL forward, IEnumMoniker **enum_moniker)
|
static HRESULT WINAPI new_moniker_Enum(IMoniker *iface, BOOL forward, IEnumMoniker **enum_moniker)
|
||||||
{
|
{
|
||||||
FIXME("%p, %d, %p.\n", iface, forward, enum_moniker);
|
TRACE("%p, %d, %p.\n", iface, forward, enum_moniker);
|
||||||
|
|
||||||
return E_NOTIMPL;
|
if (!enum_moniker)
|
||||||
|
return E_POINTER;
|
||||||
|
|
||||||
|
*enum_moniker = NULL;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI new_moniker_IsEqual(IMoniker *iface, IMoniker *other_moniker)
|
static HRESULT WINAPI new_moniker_IsEqual(IMoniker *iface, IMoniker *other_moniker)
|
||||||
|
|
|
@ -364,6 +364,14 @@ todo_wine
|
||||||
ok(moniker_type == MKSYS_ANTIMONIKER, "Unexpected moniker type %d.\n", moniker_type);
|
ok(moniker_type == MKSYS_ANTIMONIKER, "Unexpected moniker type %d.\n", moniker_type);
|
||||||
IMoniker_Release(inverse);
|
IMoniker_Release(inverse);
|
||||||
|
|
||||||
|
hr = IMoniker_Enum(moniker, FALSE, NULL);
|
||||||
|
ok(hr == E_POINTER, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
|
obj = (IUnknown *)moniker;
|
||||||
|
hr = IMoniker_Enum(moniker, FALSE, (IEnumMoniker **)&obj);
|
||||||
|
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||||
|
ok(obj == NULL, "Unexpected return value.\n");
|
||||||
|
|
||||||
IMoniker_Release(moniker);
|
IMoniker_Release(moniker);
|
||||||
IBindCtx_Release(bindctx);
|
IBindCtx_Release(bindctx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue