mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +00:00
- Fix RtlIsRangeAvailable for boundary addresses and honour the RTL_RANGE_SHARED flag.
svn path=/trunk/; revision=11379
This commit is contained in:
parent
ec9c488f06
commit
0214f20262
1 changed files with 5 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: rangelist.c,v 1.2 2004/08/15 16:39:11 chorns Exp $
|
/* $Id: rangelist.c,v 1.3 2004/10/22 16:30:58 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -690,8 +690,10 @@ RtlIsRangeAvailable (IN PRTL_RANGE_LIST RangeList,
|
||||||
while (Entry != &RangeList->ListHead)
|
while (Entry != &RangeList->ListHead)
|
||||||
{
|
{
|
||||||
Current = CONTAINING_RECORD (Entry, RTL_RANGE_ENTRY, Entry);
|
Current = CONTAINING_RECORD (Entry, RTL_RANGE_ENTRY, Entry);
|
||||||
if (!((Current->Range.Start > End && Current->Range.End > End) ||
|
if (!((Current->Range.Start >= End && Current->Range.End > End) ||
|
||||||
(Current->Range.Start < Start && Current->Range.End < Start)))
|
(Current->Range.Start <= Start && Current->Range.End < Start &&
|
||||||
|
(!(Flags & RTL_RANGE_SHARED) ||
|
||||||
|
!(Current->Range.Flags & RTL_RANGE_SHARED)))))
|
||||||
{
|
{
|
||||||
if (Callback != NULL)
|
if (Callback != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue