Changeset 2001 for trunk/src/kernel32/virtual.cpp
- Timestamp:
- Dec 6, 1999, 10:31:43 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/virtual.cpp
r1885 r2001 1 /* $Id: virtual.cpp,v 1.2 4 1999-11-30 14:15:55sandervl Exp $ */1 /* $Id: virtual.cpp,v 1.25 1999-12-06 21:31:43 sandervl Exp $ */ 2 2 3 3 /* … … 311 311 { 312 312 Win32MemMap *map; 313 ULONG offset, nrpages ;313 ULONG offset, nrpages, accessflags = 0; 314 314 315 315 nrpages = cbSize >> PAGE_SHIFT; … … 317 317 nrpages++; 318 318 319 map = Win32MemMapView::findMapByView((ULONG)lpvAddress, &offset, fdwProtect); 319 if(flag & PAG_READ) { 320 accessflags |= MEMMAP_ACCESS_READ; 321 } 322 if(flag & PAG_WRITE) { 323 accessflags |= MEMMAP_ACCESS_WRITE; 324 } 325 if(flag & PAG_EXECUTE) { 326 accessflags |= MEMMAP_ACCESS_EXECUTE; 327 } 328 map = Win32MemMapView::findMapByView((ULONG)lpvAddress, &offset, accessflags); 320 329 if(map) { 321 330 //TODO: We don't allow protection flag changes for mmaped files now
Note:
See TracChangeset
for help on using the changeset viewer.