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
76d8b4ca
Commit
76d8b4ca
authored
Oct 06, 2015
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Make sure we pass in the index not a pointer to the index.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
parent
2183b8ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
device.c
dlls/hidclass.sys/device.c
+4
-2
No files found.
dlls/hidclass.sys/device.c
View file @
76d8b4ca
...
...
@@ -233,13 +233,15 @@ static NTSTATUS handle_IOCTL_HID_GET_COLLECTION_DESCRIPTOR(IRP *irp, BASE_DEVICE
return
STATUS_SUCCESS
;
}
static
NTSTATUS
handle_minidriver_string
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
,
DWORD
index
)
static
NTSTATUS
handle_minidriver_string
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
,
SHORT
index
)
{
IO_STACK_LOCATION
*
irpsp
=
IoGetCurrentIrpStackLocation
(
irp
);
WCHAR
buffer
[
127
];
NTSTATUS
status
;
ULONG
InputBuffer
;
status
=
call_minidriver
(
IOCTL_HID_GET_STRING
,
device
,
&
index
,
sizeof
(
index
),
buffer
,
sizeof
(
buffer
));
InputBuffer
=
MAKELONG
(
index
,
0
);
status
=
call_minidriver
(
IOCTL_HID_GET_STRING
,
device
,
ULongToPtr
(
InputBuffer
),
sizeof
(
InputBuffer
),
buffer
,
sizeof
(
buffer
));
if
(
status
==
STATUS_SUCCESS
)
{
...
...
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