Commit 9c83d3c7 authored by Max Kellermann's avatar Max Kellermann

fs/io/FileOutputStream: use CREATE_ALWAYS instead of TRUNCATE_EXISTING

Fixes yet another breakage of creating the database+state file on Windows.
parent 676dfabc
......@@ -39,7 +39,7 @@ FileOutputStream::Create(Path path, Error &error)
FileOutputStream::FileOutputStream(Path _path, Error &error)
:path(_path),
handle(CreateFile(path.c_str(), GENERIC_WRITE, 0, nullptr,
TRUNCATE_EXISTING,
CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL|FILE_FLAG_WRITE_THROUGH,
nullptr))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment