|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63035 - trunk/libs/iostreams/src
From: steven_at_[hidden]
Date: 2010-06-16 23:19:08
Author: steven_watanabe
Date: 2010-06-16 23:19:04 EDT (Wed, 16 Jun 2010)
New Revision: 63035
URL: http://svn.boost.org/trac/boost/changeset/63035
Log:
Replace GENERIC_ALL with GENERIC_READ | GENERIC_WRITE. Fixes #2996.
Text files modified:
trunk/libs/iostreams/src/mapped_file.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/libs/iostreams/src/mapped_file.cpp
==============================================================================
--- trunk/libs/iostreams/src/mapped_file.cpp (original)
+++ trunk/libs/iostreams/src/mapped_file.cpp 2010-06-16 23:19:04 EDT (Wed, 16 Jun 2010)
@@ -166,7 +166,10 @@
#ifdef BOOST_IOSTREAMS_WINDOWS
// Open file
- DWORD dwDesiredAccess = readonly ? GENERIC_READ : GENERIC_ALL;
+ DWORD dwDesiredAccess =
+ readonly ?
+ GENERIC_READ :
+ (GENERIC_READ | GENERIC_WRITE);
DWORD dwCreationDisposition = (p.new_file_size != 0 && !readonly) ?
CREATE_ALWAYS :
OPEN_EXISTING;
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