Ignore:
Timestamp:
Dec 6, 1999, 10:31:43 PM (26 years ago)
Author:
sandervl
Message:

Memory map fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/virtual.cpp

    r1885 r2001  
    1 /* $Id: virtual.cpp,v 1.24 1999-11-30 14:15:55 sandervl Exp $ */
     1/* $Id: virtual.cpp,v 1.25 1999-12-06 21:31:43 sandervl Exp $ */
    22
    33/*
     
    311311  {
    312312   Win32MemMap *map;
    313    ULONG offset, nrpages;
     313   ULONG offset, nrpages, accessflags = 0;
    314314
    315315        nrpages = cbSize >> PAGE_SHIFT;
     
    317317                nrpages++;
    318318
    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);
    320329        if(map) {
    321330                //TODO: We don't allow protection flag changes for mmaped files now
Note: See TracChangeset for help on using the changeset viewer.