aboutsummaryrefslogtreecommitdiff
path: root/zencore/iobuffer.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-21 14:44:48 +0100
committerDan Engelbrecht <[email protected]>2022-03-31 11:28:33 +0200
commit77a6d84f02617b0a19bb0c5d838f91f7a20eb264 (patch)
treed1c99ef9a74a1551eaa06157f12884ee9d7073eb /zencore/iobuffer.cpp
parentclang-format (diff)
downloadzen-77a6d84f02617b0a19bb0c5d838f91f7a20eb264.tar.xz
zen-77a6d84f02617b0a19bb0c5d838f91f7a20eb264.zip
linux fixes
Diffstat (limited to 'zencore/iobuffer.cpp')
-rw-r--r--zencore/iobuffer.cpp4
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());
}
}