|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57612 - trunk/libs/iostreams/src
From: daniel_james_at_[hidden]
Date: 2009-11-12 14:20:47
Author: danieljames
Date: 2009-11-12 14:20:46 EST (Thu, 12 Nov 2009)
New Revision: 57612
URL: http://svn.boost.org/trac/boost/changeset/57612
Log:
Fix mapped file errors in windows. Refs #3505.
By Richard Smith.
Text files modified:
trunk/libs/iostreams/src/mapped_file.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/iostreams/src/mapped_file.cpp
==============================================================================
--- trunk/libs/iostreams/src/mapped_file.cpp (original)
+++ trunk/libs/iostreams/src/mapped_file.cpp 2009-11-12 14:20:46 EST (Thu, 12 Nov 2009)
@@ -380,9 +380,9 @@
{
#ifdef BOOST_IOSTREAMS_WINDOWS
DWORD error = GetLastError();
- if (mapped_handle_ != INVALID_HANDLE_VALUE)
+ if (mapped_handle_ != NULL)
::CloseHandle(mapped_handle_);
- if (handle_ != NULL)
+ if (handle_ != INVALID_HANDLE_VALUE)
::CloseHandle(handle_);
SetLastError(error);
#else
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