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
0a8c36b8
Commit
0a8c36b8
authored
May 02, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Set IRP DeviceObject in IoCallDriver.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
60ddf0f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+3
-4
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+0
-2
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
0a8c36b8
...
...
@@ -622,7 +622,6 @@ static NTSTATUS dispatch_create( const irp_params_t *params, void *in_buff, ULON
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
irpsp
->
MajorFunction
=
IRP_MJ_CREATE
;
irpsp
->
DeviceObject
=
device
;
irpsp
->
FileObject
=
file
;
irpsp
->
Parameters
.
Create
.
SecurityContext
=
NULL
;
/* FIXME */
irpsp
->
Parameters
.
Create
.
Options
=
params
->
create
.
options
;
...
...
@@ -667,7 +666,6 @@ static NTSTATUS dispatch_close( const irp_params_t *params, void *in_buff, ULONG
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
irpsp
->
MajorFunction
=
IRP_MJ_CLOSE
;
irpsp
->
DeviceObject
=
device
;
irpsp
->
FileObject
=
file
;
irp
->
Tail
.
Overlay
.
OriginalFileObject
=
file
;
...
...
@@ -1332,7 +1330,7 @@ PIRP WINAPI IoBuildDeviceIoControlRequest( ULONG code, PDEVICE_OBJECT device,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
=
code
;
irpsp
->
Parameters
.
DeviceIoControl
.
InputBufferLength
=
in_len
;
irpsp
->
Parameters
.
DeviceIoControl
.
OutputBufferLength
=
out_len
;
irpsp
->
DeviceObject
=
device
;
irpsp
->
DeviceObject
=
NULL
;
irpsp
->
CompletionRoutine
=
NULL
;
switch
(
code
&
3
)
...
...
@@ -1382,7 +1380,7 @@ PIRP WINAPI IoBuildAsynchronousFsdRequest(ULONG majorfunc, DEVICE_OBJECT *device
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
irpsp
->
MajorFunction
=
majorfunc
;
irpsp
->
DeviceObject
=
device
;
irpsp
->
DeviceObject
=
NULL
;
irpsp
->
CompletionRoutine
=
NULL
;
irp
->
AssociatedIrp
.
SystemBuffer
=
buffer
;
...
...
@@ -1966,6 +1964,7 @@ NTSTATUS WINAPI IoCallDriver( DEVICE_OBJECT *device, IRP *irp )
--
irp
->
CurrentLocation
;
irpsp
=
--
irp
->
Tail
.
Overlay
.
s
.
u2
.
CurrentStackLocation
;
irpsp
->
DeviceObject
=
device
;
dispatch
=
device
->
DriverObject
->
MajorFunction
[
irpsp
->
MajorFunction
];
TRACE_
(
relay
)(
"
\1
Call driver dispatch %p (device=%p,irp=%p)
\n
"
,
dispatch
,
device
,
irp
);
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
0a8c36b8
...
...
@@ -712,7 +712,6 @@ static void test_call_driver(DEVICE_OBJECT *device)
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
ok
(
irpsp
->
MajorFunction
==
IRP_MJ_FLUSH_BUFFERS
,
"MajorFunction = %u
\n
"
,
irpsp
->
MajorFunction
);
todo_wine
ok
(
!
irpsp
->
DeviceObject
,
"DeviceObject = %u
\n
"
,
irpsp
->
DeviceObject
);
ok
(
!
irpsp
->
FileObject
,
"FileObject = %u
\n
"
,
irpsp
->
FileObject
);
ok
(
!
irpsp
->
CompletionRoutine
,
"CompletionRouptine = %p
\n
"
,
irpsp
->
CompletionRoutine
);
...
...
@@ -735,7 +734,6 @@ static void test_call_driver(DEVICE_OBJECT *device)
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
ok
(
irpsp
->
MajorFunction
==
IRP_MJ_FLUSH_BUFFERS
,
"MajorFunction = %u
\n
"
,
irpsp
->
MajorFunction
);
todo_wine
ok
(
!
irpsp
->
DeviceObject
,
"DeviceObject = %u
\n
"
,
irpsp
->
DeviceObject
);
ok
(
!
irpsp
->
FileObject
,
"FileObject = %u
\n
"
,
irpsp
->
FileObject
);
ok
(
!
irpsp
->
CompletionRoutine
,
"CompletionRouptine = %p
\n
"
,
irpsp
->
CompletionRoutine
);
...
...
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