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
02c86130
Commit
02c86130
authored
Oct 14, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Do not abuse UserEvent to store event handle.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6e054e43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+3
-6
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
02c86130
...
...
@@ -2883,7 +2883,8 @@ done:
static
NTSTATUS
WINAPI
internal_complete
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
,
void
*
context
)
{
SetEvent
(
irp
->
UserEvent
);
HANDLE
event
=
context
;
SetEvent
(
event
);
return
STATUS_MORE_PROCESSING_REQUIRED
;
}
...
...
@@ -2891,15 +2892,11 @@ static NTSTATUS WINAPI internal_complete( DEVICE_OBJECT *device, IRP *irp, void
static
NTSTATUS
send_device_irp
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
,
ULONG_PTR
*
info
)
{
NTSTATUS
status
;
IO_STACK_LOCATION
*
irpsp
;
HANDLE
event
=
CreateEventA
(
NULL
,
FALSE
,
FALSE
,
NULL
);
DEVICE_OBJECT
*
toplevel_device
;
irp
->
UserEvent
=
event
;
irp
->
IoStatus
.
u
.
Status
=
STATUS_NOT_SUPPORTED
;
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
irpsp
->
CompletionRoutine
=
internal_complete
;
irpsp
->
Control
=
SL_INVOKE_ON_SUCCESS
|
SL_INVOKE_ON_ERROR
|
SL_INVOKE_ON_CANCEL
;
IoSetCompletionRoutine
(
irp
,
internal_complete
,
event
,
TRUE
,
TRUE
,
TRUE
);
toplevel_device
=
IoGetAttachedDeviceReference
(
device
);
status
=
IoCallDriver
(
toplevel_device
,
irp
);
...
...
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