[ros-diffs] [cgutman] 46423: [ACPI] - Implement a DispatchCreateClose handler
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Thu Mar 25 04:40:42 CET 2010
Author: cgutman
Date: Thu Mar 25 04:40:41 2010
New Revision: 46423
URL: http://svn.reactos.org/svn/reactos?rev=46423&view=rev
Log:
[ACPI]
- Implement a DispatchCreateClose handler
Modified:
trunk/reactos/drivers/bus/acpi/main.c
Modified: trunk/reactos/drivers/bus/acpi/main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/main.c?rev=46423&r1=46422&r2=46423&view=diff
==============================================================================
--- trunk/reactos/drivers/bus/acpi/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/main.c [iso-8859-1] Thu Mar 25 04:40:41 2010
@@ -168,6 +168,20 @@
NTSTATUS
NTAPI
+ACPIDispatchCreateClose(
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp)
+{
+ Irp->IoStatus.Status = STATUS_SUCCESS;
+ Irp->IoStatus.Information = 0;
+
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
ACPIDispatchDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@@ -228,6 +242,8 @@
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = ACPIDispatchDeviceControl;
DriverObject->MajorFunction [IRP_MJ_PNP] = Bus_PnP;
DriverObject->MajorFunction [IRP_MJ_POWER] = Bus_Power;
+ DriverObject->MajorFunction [IRP_MJ_CREATE] = ACPIDispatchCreateClose;
+ DriverObject->MajorFunction [IRP_MJ_CLOSE] = ACPIDispatchCreateClose;
DriverObject->DriverExtension->AddDevice = Bus_AddDevice;
More information about the Ros-diffs
mailing list