Ignore:
Timestamp:
Mar 17, 2012, 11:02:20 PM (13 years ago)
Author:
dmik
Message:

kernel32: Support guard page exceptions.

This is in particular necessary for Java yellow and red zone
implementations.

Coses #76.

File:
1 edited

Legend:

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

    r21916 r21980  
    333333        *lpdwOS2Attr |= (PAG_EXECUTE | PAG_WRITE | PAG_READ);
    334334
    335     if(dwProtect & PAGE_GUARD)  {
    336         dprintf(("WARNING: PAGE_GUARD bit set for VirtualAlloc -> we don't support this right now!"));
     335    if(dwProtect & PAGE_GUARD)
    337336        *lpdwOS2Attr |= PAG_GUARD;
    338     }
     337
    339338    if(dwProtect & PAGE_NOACCESS)     *lpdwOS2Attr |= PAG_READ; //can't do this in OS/2
    340339}
Note: See TracChangeset for help on using the changeset viewer.