Changeset 21916 for trunk/src/kernel32/mmapdup.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/kernel32/mmapdup.cpp
r10073 r21916 28 28 #include <stdlib.h> 29 29 #include <string.h> 30 #include <win \virtual.h>30 #include <win/virtual.h> 31 31 #include <odincrt.h> 32 32 #include <handlemanager.h> … … 34 34 #include "oslibdos.h" 35 35 #include "oslibmem.h" 36 #include <winimagepeldr.h>37 #include <custombuild.h> 36 #include "winimagepeldr.h" 37 #include <custombuild.h> 38 38 39 39 #define DBG_LOCALLOG DBG_mmapdup … … 48 48 // 49 49 //****************************************************************************** 50 Win32MemMapDup::Win32MemMapDup(Win32MemMap *parent, HANDLE hFile, ULONG size, 50 Win32MemMapDup::Win32MemMapDup(Win32MemMap *parent, HANDLE hFile, ULONG size, 51 51 ULONG fdwProtect, LPSTR lpszName) : 52 52 Win32MemMap(hFile, size, fdwProtect, lpszName) … … 123 123 if((fdwAccess & FILE_MAP_READ) && !(mProtFlags & (PAGE_READWRITE|PAGE_READONLY))) 124 124 goto parmfail; 125 125 126 126 if (fdwAccess != FILE_MAP_ALL_ACCESS) 127 127 if((fdwAccess & FILE_MAP_COPY) && !(mProtFlags & PAGE_WRITECOPY)) … … 222 222 BOOL Win32MemMapDup::commitPage(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess, int nrpages) 223 223 { 224 if(mProtFlags & PAGE_WRITECOPY) 224 if(mProtFlags & PAGE_WRITECOPY) 225 225 {//this is a COW map, call commitGuardPage 226 226 return commitGuardPage(ulFaultAddr, offset, fWriteAccess); … … 245 245 // 246 246 //****************************************************************************** 247 BOOL Win32MemMapDup::commitGuardPage(ULONG ulFaultAddr, ULONG ulOffset, 247 BOOL Win32MemMapDup::commitGuardPage(ULONG ulFaultAddr, ULONG ulOffset, 248 248 BOOL fWriteAccess) 249 249 {
Note:
See TracChangeset
for help on using the changeset viewer.