backed out previous checkin due to tree closure

This commit is contained in:
ssu%netscape.com 1999-06-16 21:54:13 +00:00
parent 744e12c6f7
commit 3b3892972e

View File

@ -541,13 +541,7 @@ PRInt32 nsZipArchive::CopyItemToDisk( const nsZipItem* aItem, const char* aOutna
return ZIP_ERR_MEMORY;
//-- find start of file in archive
#ifndef STANDALONE
if ( PR_Seek( mFd, aItem->offset, PR_SEEK_SET ) != (PRInt32)aItem->offset )
#else
// For standalone, PR_Seek() is stubbed with fseek(), which returns 0
// if successfull, otherwise a non-zero.
if ( PR_Seek( mFd, aItem->offset, PR_SEEK_SET ) != 0 )
#endif
{
status = ZIP_ERR_CORRUPT;
goto cleanup;
@ -655,13 +649,7 @@ PRInt32 nsZipArchive::InflateItemToDisk( const nsZipItem* aItem, const char* aOu
}
//-- find start of file in archive
#ifndef STANDALONE
if ( PR_Seek( mFd, aItem->offset, PR_SEEK_SET ) != (PRInt32)aItem->offset )
#else
// For standalone, PR_Seek() is stubbed with fseek(), which returns 0
// if successfull, otherwise a non-zero.
if ( PR_Seek( mFd, aItem->offset, PR_SEEK_SET ) != 0 )
#endif
{
status = ZIP_ERR_CORRUPT;
goto cleanup;