[Box Backup-dev] COMMIT r889 - box/chris/merge/lib/common

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Thu, 31 Aug 2006 23:31:10 +0100


Author: chris
Date: 2006-08-31 23:31:10 +0100 (Thu, 31 Aug 2006)
New Revision: 889

Modified:
   box/chris/merge/lib/common/Guards.h
Log:
Add O_BINARY to default flags, since most files opened this way should
be opened in binary mode on Win32 (refs #3)


Modified: box/chris/merge/lib/common/Guards.h
===================================================================
--- box/chris/merge/lib/common/Guards.h	2006-08-31 22:30:27 UTC (rev 888)
+++ box/chris/merge/lib/common/Guards.h	2006-08-31 22:31:10 UTC (rev 889)
@@ -24,7 +24,7 @@
 
 #include "MemLeakFindOn.h"
 
-template <int flags = O_RDONLY, int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)>
+template <int flags = O_RDONLY | O_BINARY, int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)>
 class FileHandleGuard
 {
 public: