mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
plugin/Zip: fixed to compile
git-svn-id: svn://ultimatepp.org/upp/trunk@6715 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4835766693
commit
492d5c2d11
4 changed files with 21 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue