Commit b7e8057e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Return error in NewChannelFromURL if retval is NULL.

parent 9b6c08a2
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment