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
74bea389
Commit
74bea389
authored
Oct 22, 2022
by
Ivo Ivanov
Committed by
Alexandre Julliard
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Search for added devices by devnode path in process_monitor_event().
Fixes process_monitor_event() failing to remove already added devices.
parent
9c939184
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
bus_udev.c
dlls/winebus.sys/bus_udev.c
+1
-11
No files found.
dlls/winebus.sys/bus_udev.c
View file @
74bea389
...
...
@@ -260,16 +260,6 @@ static struct base_device *find_device_from_fd(int fd)
return
NULL
;
}
static
struct
base_device
*
find_device_from_udev
(
struct
udev_device
*
dev
)
{
struct
base_device
*
impl
;
LIST_FOR_EACH_ENTRY
(
impl
,
&
device_list
,
struct
base_device
,
unix_device
.
entry
)
if
(
impl
->
udev_device
==
dev
)
return
impl
;
return
NULL
;
}
static
void
hidraw_device_destroy
(
struct
unix_device
*
iface
)
{
struct
hidraw_device
*
impl
=
hidraw_impl_from_unix_device
(
iface
);
...
...
@@ -1745,7 +1735,7 @@ static void process_monitor_event(struct udev_monitor *monitor)
udev_add_device
(
dev
,
-
1
);
else
{
impl
=
find_device_from_
udev
(
dev
);
impl
=
find_device_from_
devnode
(
udev_device_get_devnode
(
dev
)
);
if
(
impl
)
bus_event_queue_device_removed
(
&
event_queue
,
&
impl
->
unix_device
);
else
WARN
(
"failed to find device for udev device %p
\n
"
,
dev
);
}
...
...
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