diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 1126da4f..0551be16 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -134,7 +134,7 @@ SPDLOG_INLINE bool fopen_s(FILE **fp, const filename_t &filename, const filename auto file_handle = reinterpret_cast(_get_osfhandle(::_fileno(*fp))); if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0)) { - :fclose(*fp); + ::fclose(*fp); *fp = nullptr; } }