please help with this .... I saw a tutorial out there that says that supposedly fixes the bug that but it ise and grab ... if not this bad or not?
This is the code .../Stable/cml/source/MZFileSystem.cpp
Code:bool MZFileSystem::AddItem(MZFILEDESC* pDesc) { char key[_MAX_PATH]; strcpy(key,pDesc->m_szFileName); strlwr(key); // _RPT1(_CRT_WARN,"%s\n",key); ZFLISTITOR it=m_ZFileList.find(key); if(it!=m_ZFileList.end()) { MZFILEDESC *pOld=it->second; double diff=difftime(dos2unixtime(pDesc->m_modTime),dos2unixtime(pOld->m_modTime)); if(diff<0) // DiffTime File { // Update File name load Update2.mrs // int nOldPkgNum=GetUpdatePackageNumber(pOld->m_szZFileName); // int nNewPkgNum=GetUpdatePackageNumber(pDesc->m_szZFileName); // _ASSERT(nOldPkgNum>nNewPkgNum); // return false; } delete pOld; m_ZFileList.erase(it); } m_ZFileList.insert(ZFLIST::value_type(string(key), pDesc)); return true; }
Please!


Reply With Quote

