mirror of
https://gitea.tendokyu.moe/self/even
synced 2024-11-14 10:47:50 +01:00
even: rename even_open_close
This commit is contained in:
parent
3c5a0a17db
commit
837715f321
6
even.c
6
even.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user