[pypy-svn] pypy default: Fix mmap.resize() on windows.

alex_gaynor commits-noreply at bitbucket.org
Thu Feb 10 20:56:10 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41803:6c999e5e543f
Date: 2011-02-10 14:55 -0500
http://bitbucket.org/pypy/pypy/changeset/6c999e5e543f/

Log:	Fix mmap.resize() on windows.

diff --git a/pypy/rlib/rmmap.py b/pypy/rlib/rmmap.py
--- a/pypy/rlib/rmmap.py
+++ b/pypy/rlib/rmmap.py
@@ -576,7 +576,7 @@
             dwErrCode = 0
             if self.map_handle:
                 data = MapViewOfFile(self.map_handle, FILE_MAP_WRITE,
-                                     0, 0, 0)
+                                     offset_high, offset_low, newsize)
                 if data:
                     # XXX we should have a real LPVOID which must always be casted
                     charp = rffi.cast(LPCSTR, data)


More information about the Pypy-commit mailing list