From d3e729a8c7a63eea9739cd0f0047dc2a303d74c4 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 15 Feb 2004 17:04:52 +0000 Subject: [PATCH] - Canceled my last changes. svn path=/trunk/; revision=8197 --- reactos/ntoskrnl/mm/mdl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/mdl.c b/reactos/ntoskrnl/mm/mdl.c index ca4718774f0..cf270b87c2a 100644 --- a/reactos/ntoskrnl/mm/mdl.c +++ b/reactos/ntoskrnl/mm/mdl.c @@ -1,4 +1,4 @@ -/* $Id: mdl.c,v 1.57 2004/02/14 19:48:07 hbirr Exp $ +/* $Id: mdl.c,v 1.58 2004/02/15 17:04:52 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -383,7 +383,10 @@ VOID STDCALL MmProbeAndLockPages (PMDL Mdl, ExRaiseStatus(Status); } } - MmLockPage(MmGetPhysicalAddressForProcess(NULL, Address)); + else + { + MmLockPage(MmGetPhysicalAddressForProcess(NULL, Address)); + } if ((Operation == IoWriteAccess || Operation == IoModifyAccess) && (!(MmGetPageProtect(NULL, (PVOID)Address) & PAGE_READWRITE))) {