mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 11:00:41 +08:00
* mmap.cc (fhandler_disk_file::mmap): Fix address test.
This commit is contained in:
parent
baf77a53b0
commit
6694f3054e
@ -1,3 +1,7 @@
|
|||||||
|
2003-07-04 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* mmap.cc (fhandler_disk_file::mmap): Fix address test.
|
||||||
|
|
||||||
2003-07-03 Christopher Faylor <cgf@redhat.com>
|
2003-07-03 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* path.cc (fillout_mntent): Change "posix" to "managed".
|
* path.cc (fillout_mntent): Change "posix" to "managed".
|
||||||
|
@ -820,7 +820,7 @@ fhandler_disk_file::mmap (caddr_t *addr, size_t len, DWORD access,
|
|||||||
void *base = NULL;
|
void *base = NULL;
|
||||||
/* If a non-zero address is given, try mapping using the given address first.
|
/* If a non-zero address is given, try mapping using the given address first.
|
||||||
If it fails and flags is not MAP_FIXED, try again with NULL address. */
|
If it fails and flags is not MAP_FIXED, try again with NULL address. */
|
||||||
if (addr)
|
if (*addr)
|
||||||
base = MapViewOfFileEx (h, access, high, low, len, *addr);
|
base = MapViewOfFileEx (h, access, high, low, len, *addr);
|
||||||
if (!base && !(flags & MAP_FIXED))
|
if (!base && !(flags & MAP_FIXED))
|
||||||
base = MapViewOfFileEx (h, access, high, low, len, NULL);
|
base = MapViewOfFileEx (h, access, high, low, len, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user