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
b45395f5
Commit
b45395f5
authored
Jul 08, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Forward IRP_MJ_CREATE and IRP_MJ_CLOSE requests to the loaded driver.
parent
bf269501
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+6
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
b45395f5
...
...
@@ -183,6 +183,8 @@ static NTSTATUS dispatch_create( const irp_params_t *params, void *in_buff, ULON
irp
->
UserIosb
=
irp_handle
;
/* note: we abuse UserIosb to store the server irp handle */
irp
->
UserEvent
=
NULL
;
if
(
device
->
DriverObject
->
MajorFunction
[
IRP_MJ_CREATE
])
return
dispatch_irp
(
device
,
irp
);
irp
->
IoStatus
.
u
.
Status
=
STATUS_SUCCESS
;
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
STATUS_SUCCESS
;
...
...
@@ -226,8 +228,12 @@ static NTSTATUS dispatch_close( const irp_params_t *params, void *in_buff, ULONG
irp
->
UserIosb
=
irp_handle
;
/* note: we abuse UserIosb to store the server irp handle */
irp
->
UserEvent
=
NULL
;
if
(
!
device
->
DriverObject
->
MajorFunction
[
IRP_MJ_CLOSE
])
{
irp
->
IoStatus
.
u
.
Status
=
STATUS_SUCCESS
;
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
}
else
dispatch_irp
(
device
,
irp
);
HeapFree
(
GetProcessHeap
(),
0
,
file
);
/* FIXME: async close processing not supported */
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