nsiproxy: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-04-25 09:35:27 +01:00 committed by Alexandre Julliard
parent 73974636bd
commit d0833a0edf
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = nsiproxy.sys
UNIXLIB = nsiproxy.so
IMPORTS = ntoskrnl

View File

@ -266,7 +266,7 @@ static NTSTATUS WINAPI nsi_ioctl( DEVICE_OBJECT *device, IRP *irp )
IO_STACK_LOCATION *irpsp = IoGetCurrentIrpStackLocation( irp );
NTSTATUS status;
TRACE( "ioctl %x insize %u outsize %u\n",
TRACE( "ioctl %lx insize %lu outsize %lu\n",
irpsp->Parameters.DeviceIoControl.IoControlCode,
irpsp->Parameters.DeviceIoControl.InputBufferLength,
irpsp->Parameters.DeviceIoControl.OutputBufferLength );
@ -290,7 +290,7 @@ static NTSTATUS WINAPI nsi_ioctl( DEVICE_OBJECT *device, IRP *irp )
break;
default:
FIXME( "ioctl %x not supported\n", irpsp->Parameters.DeviceIoControl.IoControlCode );
FIXME( "ioctl %lx not supported\n", irpsp->Parameters.DeviceIoControl.IoControlCode );
status = STATUS_NOT_SUPPORTED;
break;
}
@ -316,7 +316,7 @@ static int add_device( DRIVER_OBJECT *driver )
status = IoCreateSymbolicLink( &link, &name );
if (status)
{
FIXME( "failed to create device error %x\n", status );
FIXME( "failed to create device error %lx\n", status );
return 0;
}
@ -341,7 +341,7 @@ static DWORD WINAPI listen_thread_proc( void *arg )
params.reply_len = irpsp->Parameters.DeviceIoControl.OutputBufferLength;
status = nsiproxy_call( icmp_listen, &params );
TRACE( "icmp_listen rets %08x\n", status );
TRACE( "icmp_listen rets %08lx\n", status );
EnterCriticalSection( &nsiproxy_cs );
@ -375,7 +375,7 @@ static void handle_queued_send_echo( IRP *irp )
params.dst = &in->dst;
status = nsiproxy_call( icmp_send_echo, &params );
TRACE( "icmp_send_echo rets %08x\n", status );
TRACE( "icmp_send_echo rets %08lx\n", status );
if (status != STATUS_PENDING)
{

View File

@ -404,7 +404,7 @@ unsigned int find_owning_pid( struct pid_map *map, unsigned int num_entries, UIN
unsigned int i, len_socket;
char socket[32];
sprintf( socket, "socket:[%lu]", inode );
sprintf( socket, "socket:[%zu]", inode );
len_socket = strlen( socket );
for (i = 0; i < num_entries; i++)
{