[PATCH 2/2] ntdll: Use our own mmap() wrapper instead of calling the wrapper in libc on Mac OS.

Charles Davis cdavis at mymail.mines.edu
Wed May 12 14:30:30 CDT 2010


From: Charles Davis <cdavis at mines.edu>

---
 dlls/ntdll/virtual.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 6fedbf3..3f914f1 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -867,7 +867,7 @@ static NTSTATUS map_file_into_view( struct file_view *view, int fd, size_t start
     {
         int flags = MAP_FIXED | (shared_write ? MAP_SHARED : MAP_PRIVATE);
 
-        if (mmap( (char *)view->base + start, size, prot, flags, fd, offset ) != (void *)-1)
+        if (wine_mmap( (char *)view->base + start, size, prot, flags, fd, offset ) != (void *)-1)
             goto done;
 
         /* mmap() failed; if this is because the file offset is not    */
-- 
1.7.1




More information about the wine-patches mailing list