This commit is contained in:
Glenn Maynard
2004-09-05 03:43:05 +00:00
parent cbea6c75bc
commit 3da657bfc8
+3 -4
View File
@@ -254,8 +254,6 @@ void RageFileDriverZip::ParseZipfile()
zip.Seek( ec.offset_start_central_directory );
bool endsig_found = false;
/* Loop through files in central directory. */
while(1)
{
@@ -270,8 +268,9 @@ void RageFileDriverZip::ParseZipfile()
* compatible with the number of entries as stored in the end_central record? */
if( Files.size() == (unsigned)ec.total_entries_central_dir )
{
/* yes, so look if we ARE back at the end_central record */
endsig_found = ( sig == end_central_sig );
/* Are we at the end_central record? */
if( sig != end_central_sig )
LOG->Warn( "%s: expected end central file header signature not found", zip.GetPath().c_str() );
} else {
LOG->Warn( "%s: expected central file header signature not found", zip.GetPath().c_str() );
}