Commit ca595cd7 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't crash in QueryInterface if uri is NULL.

parent 6a6f9158
......@@ -1026,7 +1026,7 @@ static nsresult NSAPI nsURI_QueryInterface(nsIWineURI *iface, nsIIDRef riid, nsQ
}
TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), result);
return nsIURI_QueryInterface(This->uri, riid, result);
return This->uri ? nsIURI_QueryInterface(This->uri, riid, result) : NS_NOINTERFACE;
}
static nsrefcnt NSAPI nsURI_AddRef(nsIWineURI *iface)
......
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