diff options
Diffstat (limited to 'zencore/iobuffer.cpp')
| -rw-r--r-- | zencore/iobuffer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zencore/iobuffer.cpp b/zencore/iobuffer.cpp index e684663a9..f5cfafff9 100644 --- a/zencore/iobuffer.cpp +++ b/zencore/iobuffer.cpp @@ -217,11 +217,9 @@ IoBufferExtendedCore::~IoBufferExtendedCore() int Fd = int(uintptr_t(m_FileHandle)); bool Success = (close(Fd) == 0); #endif - if (!Success) { - DWORD LastError = GetLastError(); - ZEN_WARN("Error reported on file handle close, reason {}", GetSystemErrorAsString(LastError)); + ZEN_WARN("Error reported on file handle close, reason {}", GetLastErrorAsString()); } } |