even: rename even_open_close

This commit is contained in:
Zephyr Lykos 2024-03-30 17:37:05 +08:00
parent 3c5a0a17db
commit 837715f321
No known key found for this signature in database
GPG Key ID: D3E9D31E2F77F04D

6
even.c
View File

@ -116,7 +116,7 @@ static NTSTATUS __stdcall *even_find_peb(IN HANDLE pid, OUT struct even_peb *s)
return STATUS_SUCCESS;
}
static NTSTATUS __stdcall even_open_close(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
static NTSTATUS __stdcall even_dispatch_open_close(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
UNREFERENCED_PARAMETER(DeviceObject);
@ -412,8 +412,8 @@ NTSTATUS __stdcall DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRIN
/* IOCTL support */
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = even_dispatch_device_control;
/* Open/close support */
DriverObject->MajorFunction[IRP_MJ_CREATE] = even_open_close;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = even_open_close;
DriverObject->MajorFunction[IRP_MJ_CREATE] = even_dispatch_open_close;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = even_dispatch_open_close;
/* initialize counted unicode strings */
RtlInitString(&DeviceNameA, EVEN_DEVICE_NAME);