Commit d8f6e3ef authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mshtml: Avoid a cast from a COM object to an interface.

parent 604ec98d
......@@ -725,7 +725,7 @@ static nsresult NSAPI nsChannel_GetURI(nsIHttpChannel *iface, nsIURI **aURI)
TRACE("(%p)->(%p)\n", This, aURI);
nsIFileURL_AddRef(&This->uri->nsIFileURL_iface);
*aURI = (nsIURI*)This->uri;
*aURI = (nsIURI*)&This->uri->nsIFileURL_iface;
return NS_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