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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+1
-0
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+4
-6
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
14d1855a
...
...
@@ -1989,6 +1989,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
device
=
IoGetCurrentIrpStackLocation
(
irp
)
->
DeviceObject
;
else
device
=
NULL
;
irp
->
PendingReturned
=
!!
(
irpsp
->
Control
&
SL_PENDING_RETURNED
);
if
(
call_flag
)
{
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
device
,
irp
,
irpsp
->
Context
);
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
14d1855a
...
...
@@ -1746,9 +1746,8 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
if
(
device
==
upper_device
)
{
todo_wine_if
(
completion_lower_pending
)
ok
(
irp
->
PendingReturned
==
completion_lower_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
irp
->
PendingReturned
,
completion_lower_pending
);
ok
(
irp
->
PendingReturned
==
completion_lower_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
irp
->
PendingReturned
,
completion_lower_pending
);
ok
(
irp
->
CurrentLocation
==
2
,
"Got current location %u.
\n
"
,
irp
->
CurrentLocation
);
ok
(
stack
->
Control
==
(
SL_INVOKE_ON_CANCEL
|
SL_INVOKE_ON_ERROR
|
SL_INVOKE_ON_SUCCESS
),
...
...
@@ -1763,9 +1762,8 @@ static NTSTATUS WINAPI completion_cb(DEVICE_OBJECT *device, IRP *irp, void *cont
}
else
{
todo_wine_if
(
completion_upper_pending
)
ok
(
irp
->
PendingReturned
==
completion_upper_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
irp
->
PendingReturned
,
completion_upper_pending
);
ok
(
irp
->
PendingReturned
==
completion_upper_pending
,
"Got PendingReturned %u, expected %u.
\n
"
,
irp
->
PendingReturned
,
completion_upper_pending
);
ok
(
irp
->
CurrentLocation
==
3
,
"Got current location %u.
\n
"
,
irp
->
CurrentLocation
);
ok
(
!
stack
->
Control
,
"Got control flags %#x.
\n
"
,
stack
->
Control
);
...
...
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