plugin/Zip: fixed to compile

git-svn-id: svn://ultimatepp.org/upp/trunk@6715 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-01-02 10:37:55 +00:00
parent 4835766693
commit 492d5c2d11
4 changed files with 21 additions and 11 deletions

View file

@ -10,6 +10,8 @@ void Zip::WriteFolder(const char *path, Time tm)
WriteFile(~p, 0, p, false, tm);
}
int64 zPress(Stream& out, Stream& in, int64 size, Gate2<int64, int64> progress, bool gzip, bool compress, dword *crc);
void Zip::WriteFile(const void *ptr, int size, const char *path, Gate2<int, int> progress, Time tm)
{
File& f = file.Add();
@ -17,7 +19,7 @@ void Zip::WriteFile(const void *ptr, int size, const char *path, Gate2<int, int>
StringStream ss;
MemReadStream ms(ptr, size);
dword crc;
ZCompress(ss, ms, size, progress, true, &crc);
zPress(ss, ms, size, AsGate64(progress), true, true, &crc);
String data = ss.GetResult();
const void *r = ~data;
int csize = data.GetLength();