Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
acbfddd3
Commit
acbfddd3
authored
Mar 21, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Remove the HID driver IRP_MJ_POWER handler.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f6d2495c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
driver.c
dlls/dinput/tests/driver.c
+0
-13
No files found.
dlls/dinput/tests/driver.c
View file @
acbfddd3
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment