pFile1=(CHttpFile*)session.OpenURL((LPCTSTR)file);
length=(UINT)pFile1->GetLength();
buffer=(char*)malloc(length);
pFile1->Read(buffer,length);
wrfile.Open(GHF.Dir+GHF.filepath+GHF.filename,CFile::modeCreate | CFile::modeWrite);
wrfile.Write(buffer,length);
wrfile.Close();
free(buffer);如果file 中的文件不存在,程序就自动终止提示“abnormal program termination”
怎么解决啊?