Jacek Caban : mshtml: Return error in NewChannelFromURL if retval is
NULL.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 27 09:33:01 CST 2006
Module: wine
Branch: refs/heads/master
Commit: b7e8057eecc14d38d41b9b28cb52c77557655330
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=b7e8057eecc14d38d41b9b28cb52c77557655330
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Feb 24 20:32:23 2006 +0100
mshtml: Return error in NewChannelFromURL if retval 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 393d088..819d3f8 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -1427,7 +1427,7 @@ static nsresult NSAPI nsIOService_NewCha
if(NS_FAILED(nsres)) {
WARN("Could not get nsIWineURI: %08lx\n", nsres);
*_retval = channel;
- return NS_OK;
+ return channel ? NS_OK : NS_ERROR_UNEXPECTED;
}
ret = HeapAlloc(GetProcessHeap(), 0, sizeof(nsChannel));
More information about the wine-cvs
mailing list