Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined

* Ref 033fe9f133
pull/1487/head
Denis Blank 6 years ago
parent cca004efe4
commit 61408a0f29

@ -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)));
if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0))
{
:fclose(*fp);
::fclose(*fp);
*fp = nullptr;
}
}

Loading…
Cancel
Save