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