* ntoskrnl/include/internal/safe.h: Corrected typo.

* ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent):
  Corrected typos.
* ntoskrnl/rtl/mem.c: Missing header file.

svn path=/trunk/; revision=1700
This commit is contained in:
David Welch 2001-03-16 10:58:47 +00:00
parent 22dc9e2a5e
commit 18f3b6c58b
4 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2001-03-16 David Welch <welch@cwcom.net>
* ntoskrnl/include/internal/safe.h: Corrected typo.
* ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent):
Corrected typos.
* ntoskrnl/rtl/mem.c: Missing header file.
2001-03-16 David Welch <welch@cwcom.net>
* ntoskrnl/include/internal/safe.h: Add definitions for handling

View file

@ -7,6 +7,6 @@ NTSTATUS MmSafeCopyToUser(PVOID Dest, PVOID Src, ULONG NumberOfBytes);
NTSTATUS
MmCopyFromCaller(PVOID Dest, PVOID Src, ULONG NumberOfBytes);
NTSTATUS
MmCopyToCaller(PVOID Dest, PVOID Src, ULONG NumberOfBytes)
MmCopyToCaller(PVOID Dest, PVOID Src, ULONG NumberOfBytes);
#endif /* __NTOSKRNL_INCLUDE_INTERNAL_SAFE_Hb */

View file

@ -134,7 +134,7 @@ NtCreateEvent(OUT PHANDLE UnsafeEventHandle,
NTSTATUS Status;
OBJECT_ATTRIBUTES ObjectAttributes;
Status = MmCopyFromCaller(&ObjectAttribute, UnsafeObjectAttributes,
Status = MmCopyFromCaller(&ObjectAttributes, UnsafeObjectAttributes,
sizeof(OBJECT_ATTRIBUTES));
if (!NT_SUCCESS(Status))
{
@ -143,7 +143,7 @@ NtCreateEvent(OUT PHANDLE UnsafeEventHandle,
Event = ObCreateObject(&EventHandle,
DesiredAccess,
ObjectAttributes,
&ObjectAttributes,
ExEventObjectType);
KeInitializeEvent(Event,
ManualReset ? NotificationEvent : SynchronizationEvent,
@ -181,7 +181,7 @@ NtOpenEvent(OUT PHANDLE UnsafeEventHandle,
Status = MmCopyToCaller(UnsafeEventHandle, &EventHandle, sizeof(HANDLE));
if (!NT_SUCCESS(Status))
{
ZwClose(Handle);
ZwClose(EventHandle);
return(Status);
}
@ -259,7 +259,7 @@ NtQueryEvent(IN HANDLE EventHandle,
}
ReturnLength = sizeof(EVENT_BASIC_INFORMATION);
Status = MmCopyToCaller(UnsafeReturnLength, ReturnLength, sizeof(ULONG));
Status = MmCopyToCaller(UnsafeReturnLength, &ReturnLength, sizeof(ULONG));
if (!NT_SUCCESS(Status))
{
ObDereferenceObject(Event);

View file

@ -1,4 +1,4 @@
/* $Id: mem.c,v 1.10 2001/03/16 09:50:38 dwelch Exp $
/* $Id: mem.c,v 1.11 2001/03/16 10:58:47 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -12,6 +12,7 @@
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <internal/mm.h>
#define NDEBUG
#include <internal/debug.h>