shoby / SBYZipArchive

SBYZipArchive is a simple unzip library to extract files from a large archive.
MIT License
9 stars 5 forks source link

dataForEntry: bug #2

Closed skull-squadron closed 10 years ago

skull-squadron commented 10 years ago

When dataForEntry: succeeds, it will always report an error if the error argument is used, unless the size of the file is zero.

The problem is that the error condition test in dataForEntry: needs to be (error && unz_err < 0), not just (error).