Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2007-12-29 22:17:09


Author: turkanis
Date: 2007-12-29 22:17:09 EST (Sat, 29 Dec 2007)
New Revision: 42356
URL: http://svn.boost.org/trac/boost/changeset/42356

Log:
set share mode to FILE_SHARE_READ | FILE_SHARE_WRITE when opening file under windows
Text files modified:
   branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp
==============================================================================
--- branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp (original)
+++ branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp 2007-12-29 22:17:09 EST (Sat, 29 Dec 2007)
@@ -81,7 +81,7 @@
     HANDLE handle =
         ::CreateFileA( path.c_str(),
                        dwDesiredAccess,
- 0, // dwShareMode
+ FILE_SHARE_READ | FILE_SHARE_WRITE,
                        NULL, // lpSecurityAttributes
                        dwCreationDisposition,
                        FILE_ATTRIBUTE_NORMAL,


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk