mattconnolly / ZipArchive

zip archive processing for Cocoa - iPhone and OS X
http://code.google.com/p/ziparchive/
MIT License
840 stars 260 forks source link

UnzipOpenFile fails on empty zips #69

Open ericcj opened 9 years ago

ericcj commented 9 years ago

if you CreateZipFile2 and then immediately CloseZipFile2 it correctly creates a file of 22 bytes, but then UnzipOpenFile on that returns false with errno ESRCH. i believe it should succeed and return you and empty array of entries.