mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- The last parameter of NtReadVirtualMemory should be optional.
svn path=/trunk/; revision=9542
This commit is contained in:
parent
206298fe27
commit
206a67a937
1 changed files with 5 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: virtual.c,v 1.73 2004/05/05 02:00:01 tamlin Exp $
|
||||
/* $Id: virtual.c,v 1.74 2004/05/29 11:53:43 navaraf Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/mm/virtual.c
|
||||
|
@ -274,7 +274,7 @@ NtReadVirtualMemory(IN HANDLE ProcessHandle,
|
|||
IN PVOID BaseAddress,
|
||||
OUT PVOID Buffer,
|
||||
IN ULONG NumberOfBytesToRead,
|
||||
OUT PULONG NumberOfBytesRead)
|
||||
OUT PULONG NumberOfBytesRead OPTIONAL)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
PMDL Mdl;
|
||||
|
@ -319,7 +319,9 @@ NtReadVirtualMemory(IN HANDLE ProcessHandle,
|
|||
|
||||
ObDereferenceObject(Process);
|
||||
|
||||
*NumberOfBytesRead = NumberOfBytesToRead;
|
||||
if (NumberOfBytesRead)
|
||||
*NumberOfBytesRead = NumberOfBytesToRead;
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue