Ignore:
Timestamp:
Oct 21, 1999, 9:24:23 PM (26 years ago)
Author:
sandervl
Message:

VirtualAlloc change for PAGE_NOACCESS

File:
1 edited

Legend:

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

    r1305 r1395  
    1 /* $Id: virtual.cpp,v 1.19 1999-10-15 09:25:26 sandervl Exp $ */
     1/* $Id: virtual.cpp,v 1.20 1999-10-21 19:24:23 sandervl Exp $ */
    22
    33/*
     
    287287
    288288  if(fdwProtect & PAGE_READONLY)     flag |= PAG_READ;
     289  if(fdwProtect & PAGE_NOACCESS)     flag |= PAG_READ; //can't do this in OS/2
    289290  if(fdwProtect & PAGE_READWRITE)    flag |= (PAG_READ | PAG_WRITE);
    290291  if(fdwProtect & PAGE_WRITECOPY)    flag |= (PAG_READ | PAG_WRITE);
     
    294295  if(fdwProtect & PAGE_EXECUTE)      flag |= PAG_EXECUTE;
    295296
    296   if(fdwProtect & PAGE_GUARD)        flag |= PAG_GUARD;
     297  if(fdwProtect & PAGE_GUARD) {
     298        dprintf(("ERROR: PAGE_GUARD bit set for VirtualAlloc -> we don't support this right now!"));
     299        flag |= PAG_GUARD;
     300  }
    297301
    298302  //just do this if other options are used
Note: See TracChangeset for help on using the changeset viewer.