Ignore:
Timestamp:
Sep 10, 2001, 1:03:13 PM (24 years ago)
Author:
sandervl
Message:

VirtualQuery fix (region size must be round up to next page boundary)

File:
1 edited

Legend:

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

    r4796 r6693  
    1 /* $Id: virtual.cpp,v 1.38 2000-12-12 23:57:16 sandervl Exp $ */
     1/* $Id: virtual.cpp,v 1.39 2001-09-10 11:03:13 sandervl Exp $ */
    22
    33/*
     
    626626
    627627  pmbiBuffer->BaseAddress = lpBase;
    628   pmbiBuffer->RegionSize  = cbRangeSize;
     628  //round to next page boundary
     629  pmbiBuffer->RegionSize  = (cbRangeSize + 0xFFF) & 0xFFFFF000;
    629630
    630631  if(dAttr & PAG_READ && !(dAttr & PAG_WRITE))
Note: See TracChangeset for help on using the changeset viewer.