Minor fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@1388 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-07-09 12:23:25 +00:00
commit 90ba28d339
3 changed files with 60 additions and 59 deletions

View file

@ -51,7 +51,7 @@ bool UnZip::ReadFile(Stream& out, Gate2<int, int> progress)
Buffer<byte> temp(65536);
int loaded;
int count = csize;
Crc32 crc32;
Crc32Stream crc32;
while(count > 0 && (loaded = zip->Get(temp, (int)min<int64>(count, 65536))) > 0) {
out.Put(temp, loaded);
crc32.Put(temp, loaded);