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
0f482023
Commit
0f482023
authored
Jun 30, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Handle IRP_MN_SURPRISE_REMOVAL and set removed flag.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
25155186
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
main.c
dlls/winebus.sys/main.c
+7
-6
No files found.
dlls/winebus.sys/main.c
View file @
0f482023
...
@@ -372,10 +372,6 @@ void bus_unlink_hid_device(DEVICE_OBJECT *device)
...
@@ -372,10 +372,6 @@ void bus_unlink_hid_device(DEVICE_OBJECT *device)
EnterCriticalSection
(
&
device_list_cs
);
EnterCriticalSection
(
&
device_list_cs
);
list_remove
(
&
pnp_device
->
entry
);
list_remove
(
&
pnp_device
->
entry
);
LeaveCriticalSection
(
&
device_list_cs
);
LeaveCriticalSection
(
&
device_list_cs
);
EnterCriticalSection
(
&
ext
->
cs
);
ext
->
removed
=
TRUE
;
LeaveCriticalSection
(
&
ext
->
cs
);
}
}
void
bus_remove_hid_device
(
DEVICE_OBJECT
*
device
)
void
bus_remove_hid_device
(
DEVICE_OBJECT
*
device
)
...
@@ -698,13 +694,18 @@ static NTSTATUS pdo_pnp_dispatch(DEVICE_OBJECT *device, IRP *irp)
...
@@ -698,13 +694,18 @@ static NTSTATUS pdo_pnp_dispatch(DEVICE_OBJECT *device, IRP *irp)
status
=
STATUS_SUCCESS
;
status
=
STATUS_SUCCESS
;
break
;
break
;
case
IRP_MN_SURPRISE_REMOVAL
:
EnterCriticalSection
(
&
ext
->
cs
);
remove_pending_irps
(
device
);
ext
->
removed
=
TRUE
;
LeaveCriticalSection
(
&
ext
->
cs
);
break
;
case
IRP_MN_REMOVE_DEVICE
:
case
IRP_MN_REMOVE_DEVICE
:
{
{
struct
pnp_device
*
pnp_device
=
ext
->
pnp_device
;
struct
pnp_device
*
pnp_device
=
ext
->
pnp_device
;
EnterCriticalSection
(
&
ext
->
cs
);
remove_pending_irps
(
device
);
remove_pending_irps
(
device
);
LeaveCriticalSection
(
&
ext
->
cs
);
ext
->
vtbl
->
free_device
(
device
);
ext
->
vtbl
->
free_device
(
device
);
...
...
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