Followup patch for bug 289352 "swap back the words from network to host format" patch by alfredkayser@nl.ibm.com, r=darin
git-svn-id: svn://10.0.0.236/trunk@181910 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -92,7 +92,11 @@ nsDiskCacheBlockFile::Open( nsILocalFile * blockFile, PRUint32 blockSize)
|
||||
rv = NS_ERROR_UNEXPECTED;
|
||||
goto error_exit;
|
||||
}
|
||||
|
||||
#if defined(IS_LITTLE_ENDIAN)
|
||||
// Swap from network format
|
||||
for (int i = 0; i < kBitMapWords; ++i)
|
||||
mBitMap[i] = ntohl(mBitMap[i]);
|
||||
#endif
|
||||
// validate block file size
|
||||
const PRInt32 estimatedSize = CalcBlockFileSize();
|
||||
if (estimatedSize > fileSize) {
|
||||
|
||||
Reference in New Issue
Block a user