Merge pull request #941 from pmmp:no-handle-inheritance
PiperOrigin-RevId: 412997201
This commit is contained in:
commit
e426c83e88
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user