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
3e0e12d5
Commit
3e0e12d5
authored
Jun 15, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Call completion callbacks with the correct device.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4da92f32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+7
-3
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+1
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
3e0e12d5
...
...
@@ -1902,6 +1902,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
IO_STACK_LOCATION
*
irpsp
;
PIO_COMPLETION_ROUTINE
routine
;
NTSTATUS
status
,
stat
;
DEVICE_OBJECT
*
device
;
int
call_flag
=
0
;
TRACE
(
"%p %u
\n
"
,
irp
,
priority_boost
);
...
...
@@ -1923,11 +1924,14 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
}
++
irp
->
CurrentLocation
;
++
irp
->
Tail
.
Overlay
.
s
.
u2
.
CurrentStackLocation
;
if
(
irp
->
CurrentLocation
<=
irp
->
StackCount
)
device
=
IoGetCurrentIrpStackLocation
(
irp
)
->
DeviceObject
;
else
device
=
NULL
;
if
(
call_flag
)
{
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
irpsp
->
DeviceObject
,
irp
,
irpsp
->
Context
);
stat
=
routine
(
irpsp
->
DeviceObject
,
irp
,
irpsp
->
Context
);
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
device
,
irp
,
irpsp
->
Context
);
stat
=
routine
(
device
,
irp
,
irpsp
->
Context
);
TRACE
(
"CompletionRoutine returned %x
\n
"
,
stat
);
if
(
STATUS_MORE_PROCESSING_REQUIRED
==
stat
)
return
;
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
3e0e12d5
...
...
@@ -1574,7 +1574,7 @@ static unsigned int got_completion;
static
NTSTATUS
WINAPI
completion_cb
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
,
void
*
context
)
{
todo_wine
ok
(
device
==
context
,
"Got device %p; expected %p.
\n
"
,
device
,
context
);
ok
(
device
==
context
,
"Got device %p; expected %p.
\n
"
,
device
,
context
);
++
got_completion
;
return
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