comsvcs: Implement IsSystemMoniker() 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
ee94471625
commit
96b5670ac7
|
@ -621,9 +621,11 @@ static HRESULT WINAPI new_moniker_ParseDisplayName(IMoniker *iface, IBindCtx *pb
|
||||||
|
|
||||||
static HRESULT WINAPI new_moniker_IsSystemMoniker(IMoniker *iface, DWORD *moniker_type)
|
static HRESULT WINAPI new_moniker_IsSystemMoniker(IMoniker *iface, DWORD *moniker_type)
|
||||||
{
|
{
|
||||||
FIXME("%p, %p.\n", iface, moniker_type);
|
TRACE("%p, %p.\n", iface, moniker_type);
|
||||||
|
|
||||||
return E_NOTIMPL;
|
*moniker_type = MKSYS_NONE;
|
||||||
|
|
||||||
|
return S_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const IMonikerVtbl new_moniker_vtbl =
|
static const IMonikerVtbl new_moniker_vtbl =
|
||||||
|
|
|
@ -332,10 +332,9 @@ static void test_new_moniker(void)
|
||||||
|
|
||||||
moniker_type = MKSYS_CLASSMONIKER;
|
moniker_type = MKSYS_CLASSMONIKER;
|
||||||
hr = IMoniker_IsSystemMoniker(moniker, &moniker_type);
|
hr = IMoniker_IsSystemMoniker(moniker, &moniker_type);
|
||||||
todo_wine {
|
|
||||||
ok(hr == S_FALSE || broken(hr == S_OK) /* XP */, "Unexpected hr %#x.\n", hr);
|
ok(hr == S_FALSE || broken(hr == S_OK) /* XP */, "Unexpected hr %#x.\n", hr);
|
||||||
ok(moniker_type == MKSYS_NONE, "Unexpected moniker type %d.\n", moniker_type);
|
ok(moniker_type == MKSYS_NONE, "Unexpected moniker type %d.\n", moniker_type);
|
||||||
}
|
|
||||||
hr = IMoniker_IsRunning(moniker, NULL, NULL, NULL);
|
hr = IMoniker_IsRunning(moniker, NULL, NULL, NULL);
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(hr == S_FALSE, "Unexpected hr %#x.\n", hr);
|
ok(hr == S_FALSE, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
Loading…
Reference in New Issue