[3/3] ntoskrnl.exe: Fix parameters of IoBuildSynchronousFsdRequest in dispatch_flush.

Sebastian Lackner sebastian at fds-team.de
Thu Oct 6 22:20:01 CDT 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

IRP_MJ_FLUSH_BUFFERS does not expect any input buffer. MSDN also mentions for
IoBuildSynchronousFsdRequest: """If MajorFunction is IRP_MJ_FLUSH_BUFFERS or
IRP_MJ_SHUTDOWN, this parameter must be NULL."""

 dlls/ntoskrnl.exe/ntoskrnl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index aac059e..ba2c328 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -358,7 +358,7 @@ static NTSTATUS dispatch_flush( const irp_params_t *params, void *in_buff, ULONG
     TRACE( "device %p file %p\n", device, file );
 
     /* note: we abuse UserIosb to store the server irp handle */
-    if (!(irp = IoBuildSynchronousFsdRequest( IRP_MJ_FLUSH_BUFFERS, device, in_buff, in_size,
+    if (!(irp = IoBuildSynchronousFsdRequest( IRP_MJ_FLUSH_BUFFERS, device, NULL, 0,
                                               NULL, NULL, irp_handle )))
         return STATUS_NO_MEMORY;
 
-- 
2.9.0



More information about the wine-patches mailing list