diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-02-23 09:49:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-02-23 09:49:19 +0000 |
commit | 675412e9d647eaedf65234cc96b63cfc04508e2d (patch) | |
tree | bf6b6b5e7f2b5e3e9cef46fd2fb98c03730f9e9d /winsup/cygwin/mmap.cc | |
parent | 55a96ae8b347343db2fd43518fc2ba918972b0c7 (diff) | |
download | newlib-675412e9d647eaedf65234cc96b63cfc04508e2d.zip newlib-675412e9d647eaedf65234cc96b63cfc04508e2d.tar.gz newlib-675412e9d647eaedf65234cc96b63cfc04508e2d.tar.bz2 |
* mmap.cc (fhandler_disk_file::mmap): Use `addr' correctly.
* fhandler_mem.cc (fhandler_dev_mem::mmap): Ditto.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index 42a7b69..4ad970a 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -729,9 +729,9 @@ fhandler_disk_file::mmap (caddr_t *addr, size_t len, DWORD access, } void *base = MapViewOfFileEx (h, access, 0, off, len, - (flags & MAP_FIXED) ? addr : NULL); + (flags & MAP_FIXED) ? *addr : NULL); - if (!base || ((flags & MAP_FIXED) && base != addr)) + if (!base || ((flags & MAP_FIXED) && base != *addr)) { if (!base) { |