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
f6cb7385
Commit
f6cb7385
authored
Feb 01, 2018
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Implement get_string for linux event devices.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
890107e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
bus_udev.c
dlls/winebus.sys/bus_udev.c
+21
-1
No files found.
dlls/winebus.sys/bus_udev.c
View file @
f6cb7385
...
...
@@ -862,7 +862,27 @@ static NTSTATUS lnxev_get_reportdescriptor(DEVICE_OBJECT *device, BYTE *buffer,
static
NTSTATUS
lnxev_get_string
(
DEVICE_OBJECT
*
device
,
DWORD
index
,
WCHAR
*
buffer
,
DWORD
length
)
{
return
STATUS_NOT_IMPLEMENTED
;
struct
wine_input_private
*
ext
=
input_impl_from_DEVICE_OBJECT
(
device
);
char
str
[
255
];
str
[
0
]
=
0
;
switch
(
index
)
{
case
HID_STRING_ID_IPRODUCT
:
ioctl
(
ext
->
base
.
device_fd
,
EVIOCGNAME
(
sizeof
(
str
)),
str
);
break
;
case
HID_STRING_ID_IMANUFACTURER
:
strcpy
(
str
,
"evdev"
);
break
;
case
HID_STRING_ID_ISERIALNUMBER
:
ioctl
(
ext
->
base
.
device_fd
,
EVIOCGUNIQ
(
sizeof
(
str
)),
str
);
break
;
default:
ERR
(
"Unhandled string index %i
\n
"
,
index
);
}
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
buffer
,
length
);
return
STATUS_SUCCESS
;
}
static
NTSTATUS
lnxev_begin_report_processing
(
DEVICE_OBJECT
*
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