Index: util/file/file_io_win.cc |
diff --git a/util/file/file_io_win.cc b/util/file/file_io_win.cc |
index 24a875011a8a5f200914d24054872e620d47bb58..dce1518aba89b1f0bdc617fe0a5569a99455b6a6 100644 |
--- a/util/file/file_io_win.cc |
+++ b/util/file/file_io_win.cc |
@@ -43,6 +43,9 @@ FileHandle LoggingOpenFileForOutput(DWORD access, |
FilePermissions permissions) { |
DWORD disposition = 0; |
switch (mode) { |
+ case FileWriteMode::kReuseOrFail: |
+ disposition = OPEN_EXISTING; |
+ break; |
case FileWriteMode::kReuseOrCreate: |
disposition = OPEN_ALWAYS; |
break; |