Commit 379b9f67 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe: Don't crash if output parameter is NULL in WebBrowser::get_RegisterAsDropTarget.

parent fb36148f
......@@ -2321,6 +2321,10 @@ static void test_ie_funcs(IWebBrowser2 *wb)
ok(sName!=NULL, "get_Name return a NULL string.\n");
SysFreeString(sName);
/* RegisterAsDropTarget */
hres = IWebBrowser2_get_RegisterAsDropTarget(wb, NULL);
ok(hres == E_INVALIDARG, "get_RegisterAsDropTarget returned: %08x\n", hres);
/* Quit */
hres = IWebBrowser2_Quit(wb);
......
......@@ -943,7 +943,12 @@ static HRESULT WINAPI WebBrowser_get_RegisterAsDropTarget(IWebBrowser2 *iface,
VARIANT_BOOL *pbRegister)
{
WebBrowser *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)->(%p)\n", This, pbRegister);
if(!pbRegister)
return E_INVALIDARG;
*pbRegister=0;
return S_OK;
}
......
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