Jacek Caban : ntdll: Remove no longer needed event handle from async_irp.

Alexandre Julliard julliard at winehq.org
Thu Nov 1 16:33:52 CDT 2018


Module: wine
Branch: master
Commit: 9ee34a5d92510ea2899940036b035a6fb6c4fb04
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9ee34a5d92510ea2899940036b035a6fb6c4fb04

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Nov  1 12:41:11 2018 +0100

ntdll: Remove no longer needed event handle from async_irp.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/file.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 2b62206..4d2fa7a 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -375,7 +375,6 @@ struct async_fileio_write
 struct async_irp
 {
     struct async_fileio io;
-    HANDLE              event;    /* async event */
     void               *buffer;   /* buffer for output */
     ULONG               size;     /* size of buffer */
 };
@@ -568,7 +567,6 @@ static NTSTATUS server_read_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE a
     if (!(async = (struct async_irp *)alloc_fileio( sizeof(*async), irp_completion, handle )))
         return STATUS_NO_MEMORY;
 
-    async->event   = event;
     async->buffer  = buffer;
     async->size    = size;
 
@@ -612,7 +610,6 @@ static NTSTATUS server_write_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE
     if (!(async = (struct async_irp *)alloc_fileio( sizeof(*async), irp_completion, handle )))
         return STATUS_NO_MEMORY;
 
-    async->event   = event;
     async->buffer  = NULL;
     async->size    = 0;
 
@@ -1522,7 +1519,6 @@ static NTSTATUS server_ioctl_file( HANDLE handle, HANDLE event,
 
     if (!(async = (struct async_irp *)alloc_fileio( sizeof(*async), irp_completion, handle )))
         return STATUS_NO_MEMORY;
-    async->event   = event;
     async->buffer  = out_buffer;
     async->size    = out_size;
 
@@ -3321,7 +3317,6 @@ NTSTATUS WINAPI NtFlushBuffersFile( HANDLE hFile, IO_STATUS_BLOCK *io )
 
         if (!(async = (struct async_irp *)alloc_fileio( sizeof(*async), irp_completion, hFile )))
             return STATUS_NO_MEMORY;
-        async->event   = NULL;
         async->buffer  = NULL;
         async->size    = 0;
 




More information about the wine-cvs mailing list