mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Set Mdl->Process in MmMapLockedPages to current process and back to NULL in MmUnmapLockedPages.
svn path=/trunk/; revision=9419
This commit is contained in:
parent
caa8f5caae
commit
fb5e84bd1f
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: mdl.c,v 1.62 2004/04/20 18:59:00 gdalsnes Exp $
|
||||
/* $Id: mdl.c,v 1.63 2004/05/16 22:27:57 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -235,6 +235,8 @@ MmMapLockedPages(PMDL Mdl, KPROCESSOR_MODE AccessMode)
|
|||
KEBUGCHECK(0);
|
||||
/* FIXME: handle this? */
|
||||
}
|
||||
|
||||
Mdl->Process = CurrentProcess;
|
||||
}
|
||||
else /* if (AccessMode == KernelMode) */
|
||||
{
|
||||
|
@ -408,6 +410,8 @@ MmUnmapLockedPages(PVOID BaseAddress, PMDL Mdl)
|
|||
}
|
||||
|
||||
MmFreeMemoryArea( &Mdl->Process->AddressSpace, Marea->BaseAddress, 0, NULL, NULL );
|
||||
|
||||
Mdl->Process = NULL;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue