Rémi Bernon : dinput/tests: Remove the HID driver IRP_MJ_POWER handler.

Alexandre Julliard julliard at winehq.org
Mon Mar 21 17:20:25 CDT 2022


Module: wine
Branch: master
Commit: acbfddd38c2803d99a6d6fa74caa9776e26a6640
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=acbfddd38c2803d99a6d6fa74caa9776e26a6640

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon Mar 21 09:54:13 2022 +0100

dinput/tests: Remove the HID driver IRP_MJ_POWER handler.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dinput/tests/driver.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/dlls/dinput/tests/driver.c b/dlls/dinput/tests/driver.c
index e4101853833..579d82cfeed 100644
--- a/dlls/dinput/tests/driver.c
+++ b/dlls/dinput/tests/driver.c
@@ -457,18 +457,6 @@ static NTSTATUS WINAPI driver_pnp( DEVICE_OBJECT *device, IRP *irp )
     return IoCallDriver( ext->NextDeviceObject, irp );
 }
 
-static NTSTATUS WINAPI driver_power( DEVICE_OBJECT *device, IRP *irp )
-{
-    HID_DEVICE_EXTENSION *ext = device->DeviceExtension;
-
-    /* We do not expect power IRPs as part of normal operation. */
-    ok( 0, "unexpected call\n" );
-
-    PoStartNextPowerIrp( irp );
-    IoSkipCurrentIrpStackLocation( irp );
-    return PoCallDriver( ext->NextDeviceObject, irp );
-}
-
 #define check_buffer( a, b ) check_buffer_( __LINE__, a, b )
 static void check_buffer_( int line, HID_XFER_PACKET *packet, struct hid_expect *expect )
 {
@@ -889,7 +877,6 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *registry )
     driver->DriverExtension->AddDevice = driver_add_device;
     driver->DriverUnload = driver_unload;
     driver->MajorFunction[IRP_MJ_PNP] = driver_pnp;
-    driver->MajorFunction[IRP_MJ_POWER] = driver_power;
     driver->MajorFunction[IRP_MJ_DEVICE_CONTROL] = driver_ioctl;
     driver->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = driver_internal_ioctl;
     driver->MajorFunction[IRP_MJ_CREATE] = driver_create;




More information about the wine-cvs mailing list