Bug 477934 nsSafeFileOutputStream (prefs.js) not safe from system crashes

r=biesi
This commit is contained in:
timeless@mozdev.org 2009-03-12 13:13:00 +01:00
parent 3e25d2e548
commit 2fa5162995

View File

@ -531,6 +531,7 @@ nsSafeFileOutputStream::Close()
NS_IMETHODIMP
nsSafeFileOutputStream::Finish()
{
Flush();
nsresult rv = nsFileOutputStream::Close();
// if there is no temp file, don't try to move it over the original target.