Forgot to commit this with r19248... ("Add back ACPI device, to allow
auto power off of the computer")
Modified: trunk/reactos/drivers/bus/acpi/ospm/acpisys.c
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/acpisys.c
--- trunk/reactos/drivers/bus/acpi/ospm/acpisys.c 2005-11-15
16:41:49 UTC (rev 19248)
+++ trunk/reactos/drivers/bus/acpi/ospm/acpisys.c 2005-11-15
16:48:24 UTC (rev 19249)
@@ -125,6 +125,9 @@
DPRINT("Called\n");
+ if (PhysicalDeviceObject == NULL)
+ return STATUS_SUCCESS;
+
Status = IoCreateDevice(DriverObject,
sizeof(FDO_DEVICE_EXTENSION),
NULL,
@@ -143,8 +146,8 @@
DeviceExtension->Pdo = PhysicalDeviceObject;
DeviceExtension->Common.IsFDO = TRUE;
- //DeviceExtension->Common.Ldo =
- // IoAttachDeviceToDeviceStack(Fdo, PhysicalDeviceObject);
+ DeviceExtension->Common.Ldo =
+ IoAttachDeviceToDeviceStack(Fdo, PhysicalDeviceObject);
DeviceExtension->State = dsStopped;
Show replies by date