Browse Source

Merge pull request #941 from pmmp:no-handle-inheritance

PiperOrigin-RevId: 412997201
main
Victor Costan 3 years ago
parent
commit
e426c83e88
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      util/env_windows.cc

+ 1
- 1
util/env_windows.cc View File

@ -622,7 +622,7 @@ class WindowsEnv : public Env {
} }
Status NewLogger(const std::string& filename, Logger** result) override { Status NewLogger(const std::string& filename, Logger** result) override {
std::FILE* fp = std::fopen(filename.c_str(), "w");
std::FILE* fp = std::fopen(filename.c_str(), "wN");
if (fp == nullptr) { if (fp == nullptr) {
*result = nullptr; *result = nullptr;
return WindowsError(filename, ::GetLastError()); return WindowsError(filename, ::GetLastError());

Loading…
Cancel
Save