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
57d99dcf
Commit
57d99dcf
authored
Oct 06, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Parse product string from uevent HID_NAME.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2c0da820
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
bus_udev.c
dlls/winebus.sys/bus_udev.c
+7
-1
No files found.
dlls/winebus.sys/bus_udev.c
View file @
57d99dcf
...
...
@@ -1048,6 +1048,7 @@ static void get_device_subsystem_info(struct udev_device *dev, char const *subsy
{
struct
udev_device
*
parent
=
NULL
;
const
char
*
ptr
,
*
next
,
*
tmp
;
char
buffer
[
MAX_PATH
];
DWORD
bus
=
0
;
if
(
!
(
parent
=
udev_device_get_parent_with_subsystem_devtype
(
dev
,
subsystem
,
NULL
)))
return
;
...
...
@@ -1062,11 +1063,16 @@ static void get_device_subsystem_info(struct udev_device *dev, char const *subsy
if
(
!
strncmp
(
ptr
,
"HID_UNIQ="
,
9
))
{
char
buffer
[
MAX_PATH
];
if
(
desc
->
serialnumber
[
0
])
continue
;
if
(
sscanf
(
ptr
,
"HID_UNIQ=%256s
\n
"
,
buffer
)
==
1
)
ntdll_umbstowcs
(
buffer
,
strlen
(
buffer
)
+
1
,
desc
->
serialnumber
,
ARRAY_SIZE
(
desc
->
serialnumber
));
}
if
(
!
strncmp
(
ptr
,
"HID_NAME="
,
7
))
{
if
(
desc
->
product
[
0
])
continue
;
if
(
sscanf
(
ptr
,
"HID_NAME=%256s
\n
"
,
buffer
)
==
1
)
ntdll_umbstowcs
(
buffer
,
strlen
(
buffer
)
+
1
,
desc
->
product
,
ARRAY_SIZE
(
desc
->
product
));
}
if
(
!
strncmp
(
ptr
,
"HID_PHYS="
,
9
)
||
!
strncmp
(
ptr
,
"PHYS=
\"
"
,
6
))
{
if
(
!
(
tmp
=
strstr
(
ptr
,
"/input"
))
||
tmp
>=
next
)
continue
;
...
...
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