MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / SetUnzipBaseDir

Method SetUnzipBaseDir

src/Setup/unzip.cpp:3792–3798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3790}
3791
3792ZRESULT TUnzip::SetUnzipBaseDir(const TCHAR *dir)
3793{
3794 _tcscpy_s(rootdir, MAX_PATH, dir);
3795 TCHAR lastchar = rootdir[_tcslen(rootdir)-1];
3796 if (lastchar!='\\' && lastchar!='/') _tcscat_s(rootdir,_T("\\"));
3797 return ZR_OK;
3798}
3799
3800ZRESULT TUnzip::Get(int index,ZIPENTRY *ze)
3801{ if (index<-1 || index>=(int)uf->gi.number_entry) return ZR_ARGS;

Callers 1

SetUnzipBaseDirFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected