Commit 8cd4d9fb authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

devenum: Check for null pointer in IMoniker_BindToObject().

parent a46e47f8
......@@ -444,6 +444,9 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject(IMoniker *iface, IBi
TRACE("(%p)->(%p, %p, %s, %p)\n", This, pbc, pmkToLeft, debugstr_guid(riidResult), ppvResult);
if (!ppvResult)
return E_POINTER;
VariantInit(&var);
*ppvResult = NULL;
......
......@@ -134,6 +134,9 @@ static void test_devenum(IBindCtx *bind_ctx)
}
}
hr = IMoniker_BindToObject(moniker, bind_ctx, NULL, &IID_IUnknown, NULL);
ok(hr == E_POINTER, "got %#x\n", hr);
IPropertyBag_Release(prop_bag);
IMoniker_Release(moniker);
}
......
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