ZRESULT TUnzip::Open(void *z,unsigned int len,DWORD flags) { if (uf!=0 || currentfile!=-1) return ZR_NOTINITED; GetCurrentDirectory(MAX_PATH,rootdir); _tcscat(rootdir,_T("\\temp")); //add temp dir, but can not work _tcscat(rootdir,_T("\\"); if (flags==ZIP_HANDLE) { DWORD type = GetFileType(z); if (type!=FILE_TYPE_DISK) return ZR_SEEK; } ZRESULT e; LUFILE *f = lufopen(z,len,flags,&e); if (f==NULL) return e; uf = unzOpenInternal(f); //return ZR_OK; return zopenerror; //+++1.2 }
rootdir
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)