summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-12-14 22:43:50 +0000
committerChris Wilson <chris+github@qwirx.com>2006-12-14 22:43:50 +0000
commit00eca9b0e4b6ea958d05d74c05dfc0ae3d7b6057 (patch)
tree5be194b85392635e9796b9bdf4d2a6b961d9914e /lib/common
parent66ecd41ed17ce907a27a20b33d1edd8017acfd44 (diff)
Simplify code (merge [1017])
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/FileStream.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/common/FileStream.cpp b/lib/common/FileStream.cpp
index 02b558bd..b6ae083e 100644
--- a/lib/common/FileStream.cpp
+++ b/lib/common/FileStream.cpp
@@ -307,15 +307,12 @@ void FileStream::Close()
#ifdef WIN32
if(::CloseHandle(mOSFileHandle) == 0)
- {
- THROW_EXCEPTION(CommonException, OSFileCloseError)
- }
#else
if(::close(mOSFileHandle) != 0)
+#endif
{
THROW_EXCEPTION(CommonException, OSFileCloseError)
}
-#endif
mOSFileHandle = INVALID_FILE;
mIsEOF = true;