1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 01:37:58 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabi Melman
ea89efbed7
Merge pull request #1487 from Naios/v1.x
Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined
2020-03-23 23:18:37 +02:00
Denis Blank
61408a0f29 Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined
* Ref 033fe9f133
2020-03-23 22:16:25 +01:00

View File

@ -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;
}
}