Commit 9035f66c authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

mountmgr.sys: Enable compilation with long types.

parent a4a74345
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = mountmgr.sys MODULE = mountmgr.sys
UNIXLIB = mountmgr.so UNIXLIB = mountmgr.so
IMPORTS = uuid advapi32 ntoskrnl IMPORTS = uuid advapi32 ntoskrnl
......
...@@ -753,7 +753,7 @@ static DBusMessage *dhcp4_config_option_request( const char *unix_name, const ch ...@@ -753,7 +753,7 @@ static DBusMessage *dhcp4_config_option_request( const char *unix_name, const ch
return reply; return reply;
} }
static const char *map_option( ULONG option ) static const char *map_option( unsigned option )
{ {
switch (option) switch (option)
{ {
...@@ -792,7 +792,7 @@ NTSTATUS dhcp_request( void *args ) ...@@ -792,7 +792,7 @@ NTSTATUS dhcp_request( void *args )
ptr->S_un.S_addr = inet_addr( value ); ptr->S_un.S_addr = inet_addr( value );
params->req->offset = params->offset; params->req->offset = params->offset;
params->req->size = sizeof(*ptr); params->req->size = sizeof(*ptr);
TRACE( "returning %08x\n", *(DWORD *)ptr ); TRACE( "returning %08x\n", *(unsigned int*)ptr );
} }
ret = sizeof(*ptr); ret = sizeof(*ptr);
break; break;
...@@ -814,7 +814,7 @@ NTSTATUS dhcp_request( void *args ) ...@@ -814,7 +814,7 @@ NTSTATUS dhcp_request( void *args )
break; break;
} }
default: default:
FIXME( "option %u not supported\n", params->req->id ); FIXME( "option %u not supported\n", (unsigned int)params->req->id );
break; break;
} }
......
...@@ -717,7 +717,7 @@ static NTSTATUS create_disk_device( enum device_type type, struct disk_device ** ...@@ -717,7 +717,7 @@ static NTSTATUS create_disk_device( enum device_type type, struct disk_device **
} }
else else
{ {
FIXME( "IoCreateDevice %s got %x\n", debugstr_w(name.Buffer), status ); FIXME( "IoCreateDevice %s got %lx\n", debugstr_w(name.Buffer), status );
RtlFreeUnicodeString( &name ); RtlFreeUnicodeString( &name );
} }
return status; return status;
...@@ -890,7 +890,7 @@ static BOOL get_volume_device_info( struct volume *volume ) ...@@ -890,7 +890,7 @@ static BOOL get_volume_device_info( struct volume *volume )
if (!(name = wine_get_dos_file_name( unix_device ))) if (!(name = wine_get_dos_file_name( unix_device )))
{ {
ERR("Failed to convert %s to NT, err %u\n", debugstr_a(unix_device), GetLastError()); ERR("Failed to convert %s to NT, err %lu\n", debugstr_a(unix_device), GetLastError());
return FALSE; return FALSE;
} }
handle = CreateFileW( name, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_WRITE, handle = CreateFileW( name, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_WRITE,
...@@ -898,7 +898,7 @@ static BOOL get_volume_device_info( struct volume *volume ) ...@@ -898,7 +898,7 @@ static BOOL get_volume_device_info( struct volume *volume )
RtlFreeHeap( GetProcessHeap(), 0, name ); RtlFreeHeap( GetProcessHeap(), 0, name );
if (handle == INVALID_HANDLE_VALUE) if (handle == INVALID_HANDLE_VALUE)
{ {
WARN("Failed to open %s, err %u\n", debugstr_a(unix_device), GetLastError()); WARN("Failed to open %s, err %lu\n", debugstr_a(unix_device), GetLastError());
return FALSE; return FALSE;
} }
...@@ -1008,7 +1008,7 @@ static NTSTATUS set_volume_info( struct volume *volume, struct dos_drive *drive, ...@@ -1008,7 +1008,7 @@ static NTSTATUS set_volume_info( struct volume *volume, struct dos_drive *drive,
get_filesystem_serial( volume ); get_filesystem_serial( volume );
} }
TRACE("fs_type %#x, label %s, serial %08x\n", volume->fs_type, debugstr_w(volume->label), volume->serial); TRACE("fs_type %#x, label %s, serial %08lx\n", volume->fs_type, debugstr_w(volume->label), volume->serial);
if (guid && memcmp( &volume->guid, guid, sizeof(volume->guid) )) if (guid && memcmp( &volume->guid, guid, sizeof(volume->guid) ))
{ {
...@@ -1526,7 +1526,7 @@ NTSTATUS query_unix_drive( void *buff, SIZE_T insize, SIZE_T outsize, IO_STATUS_ ...@@ -1526,7 +1526,7 @@ NTSTATUS query_unix_drive( void *buff, SIZE_T insize, SIZE_T outsize, IO_STATUS_
ptr += strlen(ptr) + 1; ptr += strlen(ptr) + 1;
} }
TRACE( "returning %c: dev %s mount %s type %u\n", TRACE( "returning %c: dev %s mount %s type %lu\n",
letter, debugstr_a(device), debugstr_a(mount_point), type ); letter, debugstr_a(device), debugstr_a(mount_point), type );
iosb->Information = ptr - (char *)output; iosb->Information = ptr - (char *)output;
...@@ -1622,7 +1622,7 @@ static NTSTATUS WINAPI harddisk_query_volume( DEVICE_OBJECT *device, IRP *irp ) ...@@ -1622,7 +1622,7 @@ static NTSTATUS WINAPI harddisk_query_volume( DEVICE_OBJECT *device, IRP *irp )
struct volume *volume; struct volume *volume;
NTSTATUS status; NTSTATUS status;
TRACE( "volume query %x length %u\n", info_class, length ); TRACE( "volume query %x length %lu\n", info_class, length );
EnterCriticalSection( &device_section ); EnterCriticalSection( &device_section );
volume = dev->volume; volume = dev->volume;
...@@ -1722,7 +1722,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp ) ...@@ -1722,7 +1722,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
struct disk_device *dev = device->DeviceExtension; struct disk_device *dev = device->DeviceExtension;
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 );
...@@ -1794,7 +1794,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp ) ...@@ -1794,7 +1794,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
default: default:
{ {
ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode; ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode;
FIXME("Unsupported ioctl %x (device=%x access=%x func=%x method=%x)\n", FIXME("Unsupported ioctl %lx (device=%lx access=%lx func=%lx method=%lx)\n",
code, code >> 16, (code >> 14) & 3, (code >> 2) & 0xfff, code & 3); code, code >> 16, (code >> 14) & 3, (code >> 2) & 0xfff, code & 3);
status = STATUS_NOT_SUPPORTED; status = STATUS_NOT_SUPPORTED;
break; break;
...@@ -1864,7 +1864,7 @@ static BOOL create_port_device( DRIVER_OBJECT *driver, int n, const char *unix_p ...@@ -1864,7 +1864,7 @@ static BOOL create_port_device( DRIVER_OBJECT *driver, int n, const char *unix_p
status = IoCreateDevice( driver, 0, &nt_name, 0, 0, FALSE, &dev_obj ); status = IoCreateDevice( driver, 0, &nt_name, 0, 0, FALSE, &dev_obj );
if (status != STATUS_SUCCESS) if (status != STATUS_SUCCESS)
{ {
FIXME( "IoCreateDevice %s got %x\n", debugstr_w(nt_name.Buffer), status ); FIXME( "IoCreateDevice %s got %lx\n", debugstr_w(nt_name.Buffer), status );
return FALSE; return FALSE;
} }
swprintf( symlink_buffer, ARRAY_SIZE(symlink_buffer), symlink_format, n ); swprintf( symlink_buffer, ARRAY_SIZE(symlink_buffer), symlink_format, n );
......
...@@ -251,7 +251,7 @@ static NTSTATUS define_unix_drive( const void *in_buff, SIZE_T insize ) ...@@ -251,7 +251,7 @@ static NTSTATUS define_unix_drive( const void *in_buff, SIZE_T insize )
{ {
enum device_type type = DEVICE_UNKNOWN; enum device_type type = DEVICE_UNKNOWN;
TRACE( "defining %c: dev %s mount %s type %u\n", TRACE( "defining %c: dev %s mount %s type %lu\n",
letter, debugstr_a(device), debugstr_a(mount_point), input->type ); letter, debugstr_a(device), debugstr_a(mount_point), input->type );
switch (input->type) switch (input->type)
{ {
...@@ -467,7 +467,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp ) ...@@ -467,7 +467,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
NTSTATUS status; NTSTATUS status;
ULONG info = 0; ULONG info = 0;
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 );
...@@ -592,7 +592,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp ) ...@@ -592,7 +592,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
else status = STATUS_INVALID_PARAMETER; else status = STATUS_INVALID_PARAMETER;
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;
} }
...@@ -641,7 +641,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) ...@@ -641,7 +641,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
status = IoCreateSymbolicLink( &linkW, &nameW ); status = IoCreateSymbolicLink( &linkW, &nameW );
if (status) if (status)
{ {
FIXME( "failed to create device error %x\n", status ); FIXME( "failed to create device error %lx\n", status );
return status; return status;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment