diff --git a/reactos/ntoskrnl/nt/ntevent.c b/reactos/ntoskrnl/nt/ntevent.c index 6a5ce33dc3f..c62ba7529c7 100644 --- a/reactos/ntoskrnl/nt/ntevent.c +++ b/reactos/ntoskrnl/nt/ntevent.c @@ -80,7 +80,7 @@ NTSTATUS STDCALL NtCreateEvent (OUT PHANDLE EventHandle, ObjectAttributes, ExEventType); KeInitializeEvent( Event, ManualReset ? NotificationEvent : SynchronizationEvent, InitialState ); - OnDereferenceObject( Event ); + ObDereferenceObject( Event ); return(STATUS_SUCCESS); }