Update of /cvsroot/boost/boost/boost/interprocess
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31476

Modified Files:
        mapped_region.hpp 
Log Message:
Fixed bug in cleanup when mapping address is not exactly matched. Reported by 
Wilbur Lang

Index: mapped_region.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/interprocess/mapped_region.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mapped_region.hpp   12 Jun 2007 17:07:09 -0000      1.5
+++ mapped_region.hpp   13 Jul 2007 19:42:19 -0000      1.6
@@ -303,15 +303,15 @@
       winapi::close_handle(native_mapping_handle);
    }
 
+   //Calculate new base for the user
+   m_base = static_cast<char*>(m_base) + m_extra_offset;
+
    //Check error
    if(!m_base){
       error_info err = winapi::get_last_error();
       this->priv_close();
       throw interprocess_exception(err);
    }
-
-   //Calculate new base for the user
-   m_base = static_cast<char*>(m_base) + m_extra_offset;
 }
 
 inline bool mapped_region::flush(std::size_t mapping_offset, std::size_t 
numbytes)


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to