Commit d4cb7010 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32/antimoniker: Fix Enum() return error code.

parent 8e4b95e4
......@@ -294,16 +294,12 @@ AntiMonikerImpl_ComposeWith(IMoniker* iface, IMoniker* pmkRight,
return CreateGenericComposite(iface,pmkRight,ppmkComposite);
}
/******************************************************************************
* AntiMoniker_Enum
******************************************************************************/
static HRESULT WINAPI
AntiMonikerImpl_Enum(IMoniker* iface,BOOL fForward, IEnumMoniker** ppenumMoniker)
static HRESULT WINAPI AntiMonikerImpl_Enum(IMoniker *iface, BOOL forward, IEnumMoniker **ppenumMoniker)
{
TRACE("(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
TRACE("%p, %d, %p.\n", iface, forward, ppenumMoniker);
if (ppenumMoniker == NULL)
return E_POINTER;
return E_INVALIDARG;
*ppenumMoniker = NULL;
......
......@@ -3037,7 +3037,9 @@ static void test_anti_moniker(void)
ok(!enummoniker, "Unexpected pointer.\n");
hr = IMoniker_Enum(moniker, FALSE, NULL);
todo_wine
ok(hr == E_INVALIDARG, "Unexpected hr %#lx.\n", hr);
hr = IMoniker_Enum(moniker, TRUE, NULL);
ok(hr == E_INVALIDARG, "Unexpected hr %#lx.\n", hr);
/* CommonPrefixWith() */
......
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