Bug 239455 - Use nsISafeOutputStream.finish() instead of close() to overwrite original popstate.dat. r=irving,a=Standard8 for landing on CLOSED TREE

This commit is contained in:
Hiroyuki Ikezoe 2013-09-09 22:13:03 +01:00
Родитель be3442668a
Коммит 78c26011d8
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -352,7 +352,8 @@ net_pop3_write_state(Pop3UidlHost* host, nsIFile *mailDirectory)
PL_HashTableEnumerateEntries(host->hash, net_pop3_write_mapper, (void *)fileOutputStream);
}
}
fileOutputStream->Close();
nsCOMPtr<nsISafeOutputStream> safeStream = do_QueryInterface(fileOutputStream);
safeStream->Finish();
}
static void