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
3eb8c6cd
Commit
3eb8c6cd
authored
Aug 02, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Set IoStatus.Information in IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5e57887b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
device.c
dlls/hidclass.sys/device.c
+2
-0
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+3
-3
No files found.
dlls/hidclass.sys/device.c
View file @
3eb8c6cd
...
...
@@ -560,11 +560,13 @@ NTSTATUS WINAPI pdo_ioctl(DEVICE_OBJECT *device, IRP *irp)
{
if
(
irpsp
->
Parameters
.
DeviceIoControl
.
OutputBufferLength
<
sizeof
(
ULONG
))
{
irp
->
IoStatus
.
Information
=
0
;
irp
->
IoStatus
.
Status
=
rc
=
STATUS_BUFFER_TOO_SMALL
;
}
else
{
*
(
ULONG
*
)
irp
->
AssociatedIrp
.
SystemBuffer
=
RingBuffer_GetSize
(
ext
->
u
.
pdo
.
ring_buffer
);
irp
->
IoStatus
.
Information
=
sizeof
(
ULONG
);
rc
=
irp
->
IoStatus
.
Status
=
STATUS_SUCCESS
;
}
break
;
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
3eb8c6cd
...
...
@@ -2750,7 +2750,7 @@ static void test_hid_device(DWORD report_id, DWORD polled)
SetLastError
(
0xdeadbeef
);
ret
=
HidD_GetNumInputBuffers
(
file
,
&
count
);
ok
(
ret
,
"HidD_GetNumInputBuffers failed last error %u
\n
"
,
GetLastError
());
todo_wine
ok
(
count
==
32
,
"HidD_GetNumInputBuffers returned %u
\n
"
,
count
);
ok
(
count
==
32
,
"HidD_GetNumInputBuffers returned %u
\n
"
,
count
);
SetLastError
(
0xdeadbeef
);
ret
=
HidD_SetNumInputBuffers
(
file
,
1
);
...
...
@@ -2769,7 +2769,7 @@ static void test_hid_device(DWORD report_id, DWORD polled)
SetLastError
(
0xdeadbeef
);
ret
=
HidD_GetNumInputBuffers
(
file
,
&
count
);
ok
(
ret
,
"HidD_GetNumInputBuffers failed last error %u
\n
"
,
GetLastError
());
todo_wine
ok
(
count
==
16
,
"HidD_GetNumInputBuffers returned %u
\n
"
,
count
);
ok
(
count
==
16
,
"HidD_GetNumInputBuffers returned %u
\n
"
,
count
);
async_file
=
CreateFileA
(
iface_detail
->
DevicePath
,
FILE_READ_ACCESS
|
FILE_WRITE_ACCESS
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
...
...
@@ -2790,7 +2790,7 @@ static void test_hid_device(DWORD report_id, DWORD polled)
SetLastError
(
0xdeadbeef
);
ret
=
HidD_GetNumInputBuffers
(
async_file
,
&
count
);
ok
(
ret
,
"HidD_GetNumInputBuffers failed last error %u
\n
"
,
GetLastError
());
todo_wine
ok
(
count
==
2
,
"HidD_GetNumInputBuffers returned %u
\n
"
,
count
);
ok
(
count
==
2
,
"HidD_GetNumInputBuffers returned %u
\n
"
,
count
);
count
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
HidD_GetNumInputBuffers
(
file
,
&
count
);
...
...
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