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:
parent
73974636bd
commit
d0833a0edf
|
@ -1,4 +1,3 @@
|
||||||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
|
||||||
MODULE = nsiproxy.sys
|
MODULE = nsiproxy.sys
|
||||||
UNIXLIB = nsiproxy.so
|
UNIXLIB = nsiproxy.so
|
||||||
IMPORTS = ntoskrnl
|
IMPORTS = ntoskrnl
|
||||||
|
|
|
@ -266,7 +266,7 @@ static NTSTATUS WINAPI nsi_ioctl( DEVICE_OBJECT *device, IRP *irp )
|
||||||
IO_STACK_LOCATION *irpsp = IoGetCurrentIrpStackLocation( irp );
|
IO_STACK_LOCATION *irpsp = IoGetCurrentIrpStackLocation( irp );
|
||||||
NTSTATUS status;
|
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.IoControlCode,
|
||||||
irpsp->Parameters.DeviceIoControl.InputBufferLength,
|
irpsp->Parameters.DeviceIoControl.InputBufferLength,
|
||||||
irpsp->Parameters.DeviceIoControl.OutputBufferLength );
|
irpsp->Parameters.DeviceIoControl.OutputBufferLength );
|
||||||
|
@ -290,7 +290,7 @@ static NTSTATUS WINAPI nsi_ioctl( DEVICE_OBJECT *device, IRP *irp )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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;
|
status = STATUS_NOT_SUPPORTED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ static int add_device( DRIVER_OBJECT *driver )
|
||||||
status = IoCreateSymbolicLink( &link, &name );
|
status = IoCreateSymbolicLink( &link, &name );
|
||||||
if (status)
|
if (status)
|
||||||
{
|
{
|
||||||
FIXME( "failed to create device error %x\n", status );
|
FIXME( "failed to create device error %lx\n", status );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -341,7 +341,7 @@ static DWORD WINAPI listen_thread_proc( void *arg )
|
||||||
params.reply_len = irpsp->Parameters.DeviceIoControl.OutputBufferLength;
|
params.reply_len = irpsp->Parameters.DeviceIoControl.OutputBufferLength;
|
||||||
|
|
||||||
status = nsiproxy_call( icmp_listen, ¶ms );
|
status = nsiproxy_call( icmp_listen, ¶ms );
|
||||||
TRACE( "icmp_listen rets %08x\n", status );
|
TRACE( "icmp_listen rets %08lx\n", status );
|
||||||
|
|
||||||
EnterCriticalSection( &nsiproxy_cs );
|
EnterCriticalSection( &nsiproxy_cs );
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ static void handle_queued_send_echo( IRP *irp )
|
||||||
params.dst = &in->dst;
|
params.dst = &in->dst;
|
||||||
|
|
||||||
status = nsiproxy_call( icmp_send_echo, ¶ms );
|
status = nsiproxy_call( icmp_send_echo, ¶ms );
|
||||||
TRACE( "icmp_send_echo rets %08x\n", status );
|
TRACE( "icmp_send_echo rets %08lx\n", status );
|
||||||
|
|
||||||
if (status != STATUS_PENDING)
|
if (status != STATUS_PENDING)
|
||||||
{
|
{
|
||||||
|
|
|
@ -404,7 +404,7 @@ unsigned int find_owning_pid( struct pid_map *map, unsigned int num_entries, UIN
|
||||||
unsigned int i, len_socket;
|
unsigned int i, len_socket;
|
||||||
char socket[32];
|
char socket[32];
|
||||||
|
|
||||||
sprintf( socket, "socket:[%lu]", inode );
|
sprintf( socket, "socket:[%zu]", inode );
|
||||||
len_socket = strlen( socket );
|
len_socket = strlen( socket );
|
||||||
for (i = 0; i < num_entries; i++)
|
for (i = 0; i < num_entries; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue