ole32: Enumeration is not supported for pointer monikers.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-01-30 14:53:43 +03:00 committed by Alexandre Julliard
parent 5d5eb58528
commit 2017977cb3
2 changed files with 4 additions and 7 deletions

View File

@ -328,17 +328,16 @@ PointerMonikerImpl_ComposeWith(IMoniker* iface, IMoniker* pmkRight,
/******************************************************************************
* PointerMoniker_Enum
******************************************************************************/
static HRESULT WINAPI
PointerMonikerImpl_Enum(IMoniker* iface,BOOL fForward, IEnumMoniker** ppenumMoniker)
static HRESULT WINAPI PointerMonikerImpl_Enum(IMoniker *iface, BOOL fForward, IEnumMoniker **ppenumMoniker)
{
TRACE("(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
TRACE("%p, %d, %p.\n", iface, fForward, ppenumMoniker);
if (ppenumMoniker == NULL)
if (!ppenumMoniker)
return E_POINTER;
*ppenumMoniker = NULL;
return S_OK;
return E_NOTIMPL;
}
/******************************************************************************

View File

@ -3008,11 +3008,9 @@ todo_wine
/* Enum() */
hr = IMoniker_Enum(moniker, TRUE, &enummoniker);
todo_wine
ok(hr == E_NOTIMPL, "Unexpected hr %#x.\n", hr);
hr = IMoniker_Enum(moniker, FALSE, &enummoniker);
todo_wine
ok(hr == E_NOTIMPL, "Unexpected hr %#x.\n", hr);
IMoniker_Release(moniker);