diff --git a/SSZipArchive.m b/SSZipArchive.m index 38a95c6..baf0be3 100644 --- a/SSZipArchive.m +++ b/SSZipArchive.m @@ -242,7 +242,7 @@ } currentFileNumber++; - } while(ret == UNZ_OK && UNZ_OK != UNZ_END_OF_LIST_OF_FILE); + } while(ret == UNZ_OK && ret != UNZ_END_OF_LIST_OF_FILE); // Close unzClose(zip);