[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 1/4] ntdll: Use correct parameter types instead of casting.
From:       Alex Henrie <alexhenrie24 () gmail ! com>
Date:       2015-12-31 4:16:00
Message-ID: CAMMLpeQ9e0SieXw=S79hYVp=AZhJhb0zHJe5+-HHqgX0JV2W4A () mail ! gmail ! com
[Download RAW message or body]

2015-12-29 23:01 GMT-07:00 Sebastian Lackner <sebastian@fds-team.de>:
> On 30.12.2015 06:37, Alex Henrie wrote:
> > Casting has not been necessary here ever since this code was converted
> > to use wineserver requests circa Wine 1.0.
> > 
> > Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
> > ---
> > dlls/ntdll/file.c | 13 ++++---------
> > 1 file changed, 4 insertions(+), 9 deletions(-)
> > 
> > diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
> > index 1027b54..6524f32 100644
> > --- a/dlls/ntdll/file.c
> > +++ b/dlls/ntdll/file.c
> > @@ -411,10 +411,8 @@ static struct async_fileio *alloc_fileio( DWORD size, HANDLE \
> > handle, PIO_APC_ROU }
> > 
> > /* callback for irp async I/O completion */
> > -static NTSTATUS irp_completion( void *user, IO_STATUS_BLOCK *io, NTSTATUS \
> > status, void **apc, void **arg ) +static NTSTATUS irp_completion( struct \
> > async_irp *async, IO_STATUS_BLOCK *io, NTSTATUS status, void **apc, void **arg ) \
> > {
> 
> It would no longer match the prototype in dlls/ntdll/server.c then:
> 
> NTSTATUS (*func)(void *, IO_STATUS_BLOCK *, NTSTATUS, void **, void **) = \
> wine_server_get_ptr( call->async_io.func );

OK, that's fine. I'm happy to drop this patch.

I do, however, still have 8 more patches in the queue that I would
really like to have reviewed before I send anything more major...

-Alex


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic