Module: wine Branch: master Commit: d8f6e3ef7c858f5ef902f3b60aaca5047a171b0c URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8f6e3ef7c858f5ef902f3b60a...
Author: Michael Stefaniuc mstefani@redhat.de Date: Thu Nov 24 10:55:16 2016 +0100
mshtml: Avoid a cast from a COM object to an interface.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mshtml/nsio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index f8463d2..5a806c4 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -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; }