[Box Backup-commit] COMMIT r986 - box/trunk/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Thu, 12 Oct 2006 21:54:28 +0100
Author: chris
Date: 2006-10-12 21:54:28 +0100 (Thu, 12 Oct 2006)
New Revision: 986
Modified:
box/trunk/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
Modified: box/trunk/lib/common/Guards.h
===================================================================
--- box/trunk/lib/common/Guards.h 2006-10-12 20:53:55 UTC (rev 985)
+++ box/trunk/lib/common/Guards.h 2006-10-12 20:54:28 UTC (rev 986)
@@ -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: