mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:30:57 +00:00
ole32/antimoniker: Fix Enum() return error code.
This commit is contained in:
parent
8e4b95e43e
commit
d4cb70107d
|
@ -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() */
|
||||
|
|
Loading…
Reference in a new issue