mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 681085 - sync cache map file after writing the header
This commit is contained in:
parent
6ed926f6a2
commit
c04a96be6b
5
netwerk/cache/nsDiskCacheMap.cpp
vendored
5
netwerk/cache/nsDiskCacheMap.cpp
vendored
@ -234,7 +234,10 @@ nsDiskCacheMap::FlushHeader()
|
||||
if (sizeof(nsDiskCacheHeader) != bytesWritten) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
|
||||
PRStatus err = PR_Sync(mMapFD);
|
||||
if (err != PR_SUCCESS) return NS_ERROR_UNEXPECTED;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user