[NTOSKRNL]
[reactos.git] / reactos / ntoskrnl / po / power.c
index 3d05dbe..e8d37b8 100644 (file)
@@ -138,7 +138,7 @@ PoInitSystem(IN ULONG BootPhase)
     {
         /* Registry power button notification */
         IoRegisterPlugPlayNotification(EventCategoryDeviceInterfaceChange,
-                                       0, /* The registry has not been initialized yet */
+                                       PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES,
                                        (PVOID)&GUID_DEVICE_SYS_BUTTON,
                                        IopRootDeviceNode->
                                        PhysicalDeviceObject->DriverObject,
@@ -398,7 +398,7 @@ PoRequestPowerIrp(IN PDEVICE_OBJECT DeviceObject,
     else
     {
         Stack->Parameters.Power.Type = DevicePowerState;
-        Stack->Parameters.Power.State = PowerState.DeviceState;
+        Stack->Parameters.Power.State = PowerState;
     }
   
     RequestPowerItem->CompletionRoutine = CompletionFunction;