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
a38aaf43
Commit
a38aaf43
authored
May 06, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Add support for flush requests.
parent
2cd717a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+17
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
a38aaf43
...
...
@@ -203,6 +203,22 @@ static NTSTATUS dispatch_write( DEVICE_OBJECT *device, const irp_params_t *param
return
dispatch_irp
(
device
,
irp
);
}
/* process a flush request for a given device */
static
NTSTATUS
dispatch_flush
(
DEVICE_OBJECT
*
device
,
const
irp_params_t
*
params
,
void
*
in_buff
,
ULONG
in_size
,
ULONG
out_size
,
HANDLE
irp_handle
)
{
IRP
*
irp
;
TRACE
(
"device %p
\n
"
,
device
);
/* note: we abuse UserIosb to store the server irp handle */
if
(
!
(
irp
=
IoBuildSynchronousFsdRequest
(
IRP_MJ_FLUSH_BUFFERS
,
device
,
in_buff
,
in_size
,
NULL
,
NULL
,
irp_handle
)))
return
STATUS_NO_MEMORY
;
return
dispatch_irp
(
device
,
irp
);
}
/* process an ioctl request for a given device */
static
NTSTATUS
dispatch_ioctl
(
DEVICE_OBJECT
*
device
,
const
irp_params_t
*
params
,
void
*
in_buff
,
ULONG
in_size
,
ULONG
out_size
,
HANDLE
irp_handle
)
...
...
@@ -249,7 +265,7 @@ static const dispatch_func dispatch_funcs[IRP_MJ_MAXIMUM_FUNCTION + 1] =
NULL
,
/* IRP_MJ_SET_INFORMATION */
NULL
,
/* IRP_MJ_QUERY_EA */
NULL
,
/* IRP_MJ_SET_EA */
NULL
,
/* IRP_MJ_FLUSH_BUFFERS */
dispatch_flush
,
/* IRP_MJ_FLUSH_BUFFERS */
NULL
,
/* IRP_MJ_QUERY_VOLUME_INFORMATION */
NULL
,
/* IRP_MJ_SET_VOLUME_INFORMATION */
NULL
,
/* IRP_MJ_DIRECTORY_CONTROL */
...
...
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