Unverified Commit ea89efbe authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Merge pull request #1487 from Naios/v1.x

Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined
parents cca004ef 61408a0f
...@@ -134,7 +134,7 @@ SPDLOG_INLINE bool fopen_s(FILE **fp, const filename_t &filename, const filename ...@@ -134,7 +134,7 @@ SPDLOG_INLINE bool fopen_s(FILE **fp, const filename_t &filename, const filename
auto file_handle = reinterpret_cast<HANDLE>(_get_osfhandle(::_fileno(*fp))); auto file_handle = reinterpret_cast<HANDLE>(_get_osfhandle(::_fileno(*fp)));
if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0)) if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0))
{ {
:fclose(*fp); ::fclose(*fp);
*fp = nullptr; *fp = 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