[Box Backup-commit] COMMIT r1017 - box/chris/general/lib/common
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sat Oct 14 00:07:53 BST 2006
Author: chris
Date: 2006-10-14 00:07:53 +0100 (Sat, 14 Oct 2006)
New Revision: 1017
Modified:
box/chris/general/lib/common/FileStream.cpp
Log:
* Simplify code (refs #3)
Modified: box/chris/general/lib/common/FileStream.cpp
===================================================================
--- box/chris/general/lib/common/FileStream.cpp 2006-10-13 23:03:23 UTC (rev 1016)
+++ box/chris/general/lib/common/FileStream.cpp 2006-10-13 23:07:53 UTC (rev 1017)
@@ -306,15 +306,12 @@
#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;
More information about the Boxbackup-commit
mailing list