|
|
@ -622,7 +622,7 @@ class WindowsEnv : public Env { |
|
|
|
} |
|
|
|
|
|
|
|
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) { |
|
|
|
*result = nullptr; |
|
|
|
return WindowsError(filename, ::GetLastError()); |
|
|
|