mshtml: Return error in NewChannelFromURL if retval is NULL.

This commit is contained in:
Jacek Caban 2006-02-24 20:32:23 +01:00 committed by Alexandre Julliard
parent 9b6c08a243
commit b7e8057eec
1 changed files with 1 additions and 1 deletions

View File

@ -1427,7 +1427,7 @@ static nsresult NSAPI nsIOService_NewChannelFromURI(nsIIOService *iface, nsIURI
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));