Jacek Caban : mshtml: Don't crash in GetSecurityInfo if channel is NULL.
Module: wine Branch: refs/heads/master Commit: 5ad79df0f85b8dcd3a0b082f14dc52b6446ebc24 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5ad79df0f85b8dcd3a0b082f... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 20 18:59:09 2006 +0200 mshtml: Don't crash in GetSecurityInfo if channel is NULL. --- dlls/mshtml/nsio.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 2a922a3..c3269fc 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -456,8 +456,14 @@ static nsresult NSAPI nsChannel_SetNotif static nsresult NSAPI nsChannel_GetSecurityInfo(nsIHttpChannel *iface, nsISupports **aSecurityInfo) { nsChannel *This = NSCHANNEL_THIS(iface); + TRACE("(%p)->(%p)\n", This, aSecurityInfo); - return nsIChannel_GetSecurityInfo(This->channel, aSecurityInfo); + + if(This->channel) + return nsIChannel_GetSecurityInfo(This->channel, aSecurityInfo); + + FIXME("default action not implemented\n"); + return NS_ERROR_NOT_IMPLEMENTED; } static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString *aContentType)
participants (1)
-
Alexandre Julliard