rv = nsHTTPConn::OK; nsHTTPConn *conn = new nsHTTPConn(szUrl, ProcessWndMsgCB); if(conn == NULL)
if(connHTTP == NULL) { rv = DownloadViaHTTPOpen(szUrl); if(rv != nsHTTPConn::OK) { DownloadViaHTTPClose(); return(rv); } }  if(connHTTP == NULL)
int DownloadViaHTTP(char *szUrl){  int  rv;  char *file = NULL;  if((!szUrl) || (*szUrl == '\0'))    return nsHTTPConn::E_PARAM;  rv = nsHTTPConn::OK;  nsHTTPConn *conn = new nsHTTPConn(szUrl, ProcessWndMsgCB);  if(conn == NULL)  {    char szBuf[MAX_BUF_TINY];    GetPrivateProfileString("Strings", "Error Out Of Memory", "", szBuf, sizeof(szBuf), gszConfigIniFile);    PrintError(szBuf, ERROR_CODE_HIDE);    return(WIZ_OUT_OF_MEMORY);  }    if((rv = conn->Open()) != WIZ_OK)    return(rv);  if(strrchr(szUrl, '/') != (szUrl + strlen(szUrl)))    file = strrchr(szUrl, '/') + 1; // set to leaf name  rv = conn->Get(ProgressCB, file);  conn->Close();  if(conn)    delete(conn);  return(rv);}