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
b53846b6
Commit
b53846b6
authored
Oct 21, 2016
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Watch return for STATUS_PENDING not IRP status.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d1901f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/hidclass.sys/main.c
+2
-2
pnp.c
dlls/hidclass.sys/pnp.c
+2
-2
No files found.
dlls/hidclass.sys/main.c
View file @
b53846b6
...
...
@@ -112,9 +112,9 @@ NTSTATUS call_minidriver(ULONG code, DEVICE_OBJECT *device, void *in_buff, ULONG
buffer
,
out_size
,
TRUE
,
NULL
,
&
irp_status
);
IoSetCompletionRoutine
(
irp
,
internalComplete
,
event
,
TRUE
,
TRUE
,
TRUE
);
IoCallDriver
(
device
,
irp
);
status
=
IoCallDriver
(
device
,
irp
);
if
(
irp
->
IoStatus
.
u
.
S
tatus
==
STATUS_PENDING
)
if
(
s
tatus
==
STATUS_PENDING
)
WaitForSingleObject
(
event
,
INFINITE
);
memcpy
(
out_buff
,
buffer
,
out_size
);
...
...
dlls/hidclass.sys/pnp.c
View file @
b53846b6
...
...
@@ -61,8 +61,8 @@ static NTSTATUS get_device_id(DEVICE_OBJECT *device, BUS_QUERY_ID_TYPE type, WCH
irpsp
->
Parameters
.
QueryId
.
IdType
=
type
;
IoSetCompletionRoutine
(
irp
,
internalComplete
,
event
,
TRUE
,
TRUE
,
TRUE
);
IoCallDriver
(
device
,
irp
);
if
(
irp
->
IoStatus
.
u
.
S
tatus
==
STATUS_PENDING
)
status
=
IoCallDriver
(
device
,
irp
);
if
(
s
tatus
==
STATUS_PENDING
)
WaitForSingleObject
(
event
,
INFINITE
);
*
id
=
(
WCHAR
*
)
irp
->
IoStatus
.
Information
;
...
...
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