Module: wine Branch: refs/heads/master Commit: ca595cd7991473adedeb45895baac50d1df9cffc URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ca595cd7991473adedeb4589...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Aug 9 16:41:47 2006 +0200
mshtml: Don't crash in QueryInterface if uri is NULL.
---
dlls/mshtml/nsio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index d315028..abd2e48 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -1026,7 +1026,7 @@ static nsresult NSAPI nsURI_QueryInterfa }
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)