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
72876116
Commit
72876116
authored
May 27, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
May 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Set irp context handle in dispatch_irp.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0138da50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+3
-5
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
72876116
...
@@ -587,6 +587,8 @@ static void dispatch_irp( DEVICE_OBJECT *device, IRP *irp, struct dispatch_conte
...
@@ -587,6 +587,8 @@ static void dispatch_irp( DEVICE_OBJECT *device, IRP *irp, struct dispatch_conte
LARGE_INTEGER
count
;
LARGE_INTEGER
count
;
IoSetCompletionRoutine
(
irp
,
dispatch_irp_completion
,
context
->
handle
,
TRUE
,
TRUE
,
TRUE
);
IoSetCompletionRoutine
(
irp
,
dispatch_irp_completion
,
context
->
handle
,
TRUE
,
TRUE
,
TRUE
);
context
->
handle
=
0
;
KeQueryTickCount
(
&
count
);
/* update the global KeTickCount */
KeQueryTickCount
(
&
count
);
/* update the global KeTickCount */
device
->
CurrentIrp
=
irp
;
device
->
CurrentIrp
=
irp
;
...
@@ -976,11 +978,7 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
...
@@ -976,11 +978,7 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
case
STATUS_SUCCESS
:
case
STATUS_SUCCESS
:
assert
(
context
.
params
.
type
!=
IRP_CALL_NONE
&&
context
.
params
.
type
<
ARRAY_SIZE
(
dispatch_funcs
)
);
assert
(
context
.
params
.
type
!=
IRP_CALL_NONE
&&
context
.
params
.
type
<
ARRAY_SIZE
(
dispatch_funcs
)
);
status
=
dispatch_funcs
[
context
.
params
.
type
](
&
context
);
status
=
dispatch_funcs
[
context
.
params
.
type
](
&
context
);
if
(
status
==
STATUS_SUCCESS
)
if
(
!
context
.
in_buff
)
context
.
in_size
=
4096
;
{
context
.
handle
=
0
;
/* status reported by IoCompleteRequest */
if
(
!
context
.
in_buff
)
context
.
in_size
=
4096
;
}
break
;
break
;
case
STATUS_BUFFER_OVERFLOW
:
case
STATUS_BUFFER_OVERFLOW
:
HeapFree
(
GetProcessHeap
(),
0
,
context
.
in_buff
);
HeapFree
(
GetProcessHeap
(),
0
,
context
.
in_buff
);
...
...
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