Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d9fdde93
Commit
d9fdde93
authored
Mar 23, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Keep child PDO remove IRP pending until fully removed.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9955ce8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
driver_bus.c
dlls/dinput/tests/driver_bus.c
+10
-1
No files found.
dlls/dinput/tests/driver_bus.c
View file @
d9fdde93
...
...
@@ -421,6 +421,7 @@ struct phys_device
WCHAR
instance_id
[
MAX_PATH
];
WCHAR
device_id
[
MAX_PATH
];
IRP
*
pending_remove
;
BOOL
use_report_id
;
DWORD
report_descriptor_len
;
...
...
@@ -677,8 +678,14 @@ static NTSTATUS pdo_pnp( DEVICE_OBJECT *device, IRP *irp )
{
input_queue_cleanup
(
&
impl
->
input_queue
);
expect_queue_cleanup
(
&
impl
->
expect_queue
);
irp
=
impl
->
pending_remove
;
IoDeleteDevice
(
device
);
if
(
winetest_debug
>
1
)
trace
(
"Deleted Bus PDO %p
\n
"
,
device
);
if
(
irp
)
{
irp
->
IoStatus
.
Status
=
STATUS_SUCCESS
;
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
}
}
return
STATUS_SUCCESS
;
}
...
...
@@ -1220,7 +1227,9 @@ static NTSTATUS WINAPI pdo_ioctl( DEVICE_OBJECT *device, IRP *irp )
impl
->
base
.
state
=
PNP_DEVICE_REMOVED
;
irp_queue_clear
(
&
impl
->
input_queue
.
pending
);
KeReleaseSpinLock
(
&
impl
->
base
.
lock
,
irql
);
status
=
STATUS_SUCCESS
;
impl
->
pending_remove
=
irp
;
IoMarkIrpPending
(
irp
);
status
=
STATUS_PENDING
;
break
;
case
IOCTL_WINETEST_CREATE_DEVICE
:
ok
(
0
,
"unexpected call
\n
"
);
...
...
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