mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
Fixed a wrong index in MmProbeAndLockPages.
svn path=/trunk/; revision=2931
This commit is contained in:
parent
a76424cbbb
commit
a2b0f101ef
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: mdl.c,v 1.36 2002/04/27 19:24:45 hbirr Exp $
|
/* $Id: mdl.c,v 1.37 2002/05/07 22:35:02 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -251,8 +251,8 @@ VOID STDCALL MmProbeAndLockPages (PMDL Mdl,
|
||||||
{
|
{
|
||||||
for (j = 0; j < i; j++)
|
for (j = 0; j < i; j++)
|
||||||
{
|
{
|
||||||
MmUnlockPage((PVOID)MdlPages[i]);
|
MmUnlockPage((PVOID)MdlPages[j]);
|
||||||
MmDereferencePage((PVOID)MdlPages[i]);
|
MmDereferencePage((PVOID)MdlPages[j]);
|
||||||
}
|
}
|
||||||
ExRaiseStatus(Status);
|
ExRaiseStatus(Status);
|
||||||
}
|
}
|
||||||
|
@ -269,8 +269,8 @@ VOID STDCALL MmProbeAndLockPages (PMDL Mdl,
|
||||||
{
|
{
|
||||||
for (j = 0; j < i; j++)
|
for (j = 0; j < i; j++)
|
||||||
{
|
{
|
||||||
MmUnlockPage((PVOID)MdlPages[i]);
|
MmUnlockPage((PVOID)MdlPages[j]);
|
||||||
MmDereferencePage((PVOID)MdlPages[i]);
|
MmDereferencePage((PVOID)MdlPages[j]);
|
||||||
}
|
}
|
||||||
ExRaiseStatus(Status);
|
ExRaiseStatus(Status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue