diff options
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index 4ad970a..e1fc2d6 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -313,7 +313,7 @@ map::get_list_by_fd (int fd) #else /* so we use the name hash value to identify the file unless it's not an anonymous mapping. */ if ((fd == -1 && lists[i]->fd == -1) - || lists[i]->hash == fdtab[fd]->get_namehash ()) + || (fd != -1 && lists[i]->hash == fdtab[fd]->get_namehash ())) #endif return lists[i]; return 0; |