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
14d1855a
Commit
14d1855a
authored
Aug 24, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Set the PendingReturned field in IoCompleteRequest().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b332f962
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+1
-0
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+0
-2
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
14d1855a
...
@@ -1989,6 +1989,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
...
@@ -1989,6 +1989,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
device
=
IoGetCurrentIrpStackLocation
(
irp
)
->
DeviceObject
;
device
=
IoGetCurrentIrpStackLocation
(
irp
)
->
DeviceObject
;
else
else
device
=
NULL
;
device
=
NULL
;
irp
->
PendingReturned
=
!!
(
irpsp
->
Control
&
SL_PENDING_RETURNED
);
if
(
call_flag
)
if
(
call_flag
)
{
{
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
device
,
irp
,
irpsp
->
Context
);
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
device
,
irp
,
irpsp
->
Context
);
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
14d1855a
...
@@ -1746,7 +1746,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
...
@@ -1746,7 +1746,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
if
(
device
==
upper_device
)
if
(
device
==
upper_device
)
{
{
todo_wine_if
(
completion_lower_pending
)
ok
(
irp
->
PendingReturned
==
completion_lower_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
ok
(
irp
->
PendingReturned
==
completion_lower_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
irp
->
PendingReturned
,
completion_lower_pending
);
irp
->
PendingReturned
,
completion_lower_pending
);
...
@@ -1763,7 +1762,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
...
@@ -1763,7 +1762,6 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
}
}
else
else
{
{
todo_wine_if
(
completion_upper_pending
)
ok
(
irp
->
PendingReturned
==
completion_upper_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
ok
(
irp
->
PendingReturned
==
completion_upper_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
irp
->
PendingReturned
,
completion_upper_pending
);
irp
->
PendingReturned
,
completion_upper_pending
);
...
...
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