diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-26 23:07:24 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-26 23:07:24 +0000 |
commit | ec9496bea543bd5ebb9214880c056b95446b6b13 (patch) | |
tree | f13a58e9814886bf7627a4f566caa7425bd61a25 /ACE/ace/OS_NS_sys_mman.inl | |
parent | d4ce64ef75457044ad7a9334f787d24fbb4c0a23 (diff) | |
download | ATCD-ec9496bea543bd5ebb9214880c056b95446b6b13.tar.gz |
ChangeLogTag:Thu Oct 27 01:59:19 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/ace/OS_NS_sys_mman.inl')
-rw-r--r-- | ACE/ace/OS_NS_sys_mman.inl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ACE/ace/OS_NS_sys_mman.inl b/ACE/ace/OS_NS_sys_mman.inl index 3f1a69de2bb..422d07e9c35 100644 --- a/ACE/ace/OS_NS_sys_mman.inl +++ b/ACE/ace/OS_NS_sys_mman.inl @@ -37,7 +37,7 @@ ACE_OS::mmap (void *addr, int prot, int flags, ACE_HANDLE file_handle, - off_t off, + ACE_OFF_T off, ACE_HANDLE *file_mapping, LPSECURITY_ATTRIBUTES sa, const ACE_TCHAR *file_mapping_name) @@ -135,18 +135,21 @@ ACE_OS::mmap (void *addr, nt_flags |= ACE_OS_EXTRA_MMAP_FLAGS; # endif /* ACE_OS_EXTRA_MMAP_FLAGS */ + DWORD low_off = ACE_LOW_PART (off); + DWORD high_off = ACE_HIGH_PART (off); + # if !defined (ACE_HAS_WINCE) void *addr_mapping = ::MapViewOfFileEx (*file_mapping, nt_flags, - 0, - off, + high_off, + low_off, len, addr); # else void *addr_mapping = ::MapViewOfFile (*file_mapping, nt_flags, - 0, - off, + high_off, + low_off, len); # endif /* ! ACE_HAS_WINCE */ |