fixed byte ordering for little endian
git-svn-id: svn://10.0.0.236/branches/DISKCACHE2_BRANCH@95349 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
3
mozilla/netwerk/cache/src/nsDiskCacheMap.cpp
vendored
3
mozilla/netwerk/cache/src/nsDiskCacheMap.cpp
vendored
@@ -607,7 +607,7 @@ nsDiskCacheMap::WriteDiskCacheEntry(nsDiskCacheBinding * binding)
|
||||
fileIndex = 0;
|
||||
}
|
||||
|
||||
PRUint32 metaFile = binding->mRecord.MetaFile();
|
||||
PRUint32 metaFile = binding->mRecord.MetaFile();
|
||||
|
||||
// Deallocate old storage if necessary
|
||||
if (binding->mRecord.MetaLocationInitialized()) {
|
||||
@@ -667,6 +667,7 @@ nsDiskCacheMap::WriteDiskCacheEntry(nsDiskCacheBinding * binding)
|
||||
// XXX we should probably write out bucket ourselves
|
||||
|
||||
// write data
|
||||
diskEntry->Swap();
|
||||
rv = mBlockFile[fileIndex - 1].WriteBlocks(diskEntry, startBlock, blocks);
|
||||
if (NS_FAILED(rv)) goto exit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user