Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9035f66c
Commit
9035f66c
authored
Feb 14, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4a74345
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
17 deletions
+16
-17
Makefile.in
dlls/mountmgr.sys/Makefile.in
+0
-1
dbus.c
dlls/mountmgr.sys/dbus.c
+3
-3
device.c
dlls/mountmgr.sys/device.c
+9
-9
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+4
-4
No files found.
dlls/mountmgr.sys/Makefile.in
View file @
9035f66c
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
mountmgr.sys
UNIXLIB
=
mountmgr.so
IMPORTS
=
uuid advapi32 ntoskrnl
...
...
dlls/mountmgr.sys/dbus.c
View file @
9035f66c
...
...
@@ -753,7 +753,7 @@ static DBusMessage *dhcp4_config_option_request( const char *unix_name, const ch
return
reply
;
}
static
const
char
*
map_option
(
ULONG
option
)
static
const
char
*
map_option
(
unsigned
option
)
{
switch
(
option
)
{
...
...
@@ -792,7 +792,7 @@ NTSTATUS dhcp_request( void *args )
ptr
->
S_un
.
S_addr
=
inet_addr
(
value
);
params
->
req
->
offset
=
params
->
offset
;
params
->
req
->
size
=
sizeof
(
*
ptr
);
TRACE
(
"returning %08x
\n
"
,
*
(
DWORD
*
)
ptr
);
TRACE
(
"returning %08x
\n
"
,
*
(
unsigned
int
*
)
ptr
);
}
ret
=
sizeof
(
*
ptr
);
break
;
...
...
@@ -814,7 +814,7 @@ NTSTATUS dhcp_request( void *args )
break
;
}
default:
FIXME
(
"option %u not supported
\n
"
,
params
->
req
->
id
);
FIXME
(
"option %u not supported
\n
"
,
(
unsigned
int
)
params
->
req
->
id
);
break
;
}
...
...
dlls/mountmgr.sys/device.c
View file @
9035f66c
...
...
@@ -717,7 +717,7 @@ static NTSTATUS create_disk_device( enum device_type type, struct disk_device **
}
else
{
FIXME
(
"IoCreateDevice %s got %x
\n
"
,
debugstr_w
(
name
.
Buffer
),
status
);
FIXME
(
"IoCreateDevice %s got %
l
x
\n
"
,
debugstr_w
(
name
.
Buffer
),
status
);
RtlFreeUnicodeString
(
&
name
);
}
return
status
;
...
...
@@ -890,7 +890,7 @@ static BOOL get_volume_device_info( struct volume *volume )
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 %
l
u
\n
"
,
debugstr_a
(
unix_device
),
GetLastError
());
return
FALSE
;
}
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 )
RtlFreeHeap
(
GetProcessHeap
(),
0
,
name
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"Failed to open %s, err %u
\n
"
,
debugstr_a
(
unix_device
),
GetLastError
());
WARN
(
"Failed to open %s, err %
l
u
\n
"
,
debugstr_a
(
unix_device
),
GetLastError
());
return
FALSE
;
}
...
...
@@ -1008,7 +1008,7 @@ static NTSTATUS set_volume_info( struct volume *volume, struct dos_drive *drive,
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 %08
l
x
\n
"
,
volume
->
fs_type
,
debugstr_w
(
volume
->
label
),
volume
->
serial
);
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_
ptr
+=
strlen
(
ptr
)
+
1
;
}
TRACE
(
"returning %c: dev %s mount %s type %u
\n
"
,
TRACE
(
"returning %c: dev %s mount %s type %
l
u
\n
"
,
letter
,
debugstr_a
(
device
),
debugstr_a
(
mount_point
),
type
);
iosb
->
Information
=
ptr
-
(
char
*
)
output
;
...
...
@@ -1622,7 +1622,7 @@ static NTSTATUS WINAPI harddisk_query_volume( DEVICE_OBJECT *device, IRP *irp )
struct
volume
*
volume
;
NTSTATUS
status
;
TRACE
(
"volume query %x length %u
\n
"
,
info_class
,
length
);
TRACE
(
"volume query %x length %
l
u
\n
"
,
info_class
,
length
);
EnterCriticalSection
(
&
device_section
);
volume
=
dev
->
volume
;
...
...
@@ -1722,7 +1722,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
struct
disk_device
*
dev
=
device
->
DeviceExtension
;
NTSTATUS
status
;
TRACE
(
"ioctl %
x insize %u outsize %
u
\n
"
,
TRACE
(
"ioctl %
lx insize %lu outsize %l
u
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
,
irpsp
->
Parameters
.
DeviceIoControl
.
InputBufferLength
,
irpsp
->
Parameters
.
DeviceIoControl
.
OutputBufferLength
);
...
...
@@ -1794,7 +1794,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
default:
{
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=%l
x)
\n
"
,
code
,
code
>>
16
,
(
code
>>
14
)
&
3
,
(
code
>>
2
)
&
0xfff
,
code
&
3
);
status
=
STATUS_NOT_SUPPORTED
;
break
;
...
...
@@ -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
);
if
(
status
!=
STATUS_SUCCESS
)
{
FIXME
(
"IoCreateDevice %s got %x
\n
"
,
debugstr_w
(
nt_name
.
Buffer
),
status
);
FIXME
(
"IoCreateDevice %s got %
l
x
\n
"
,
debugstr_w
(
nt_name
.
Buffer
),
status
);
return
FALSE
;
}
swprintf
(
symlink_buffer
,
ARRAY_SIZE
(
symlink_buffer
),
symlink_format
,
n
);
...
...
dlls/mountmgr.sys/mountmgr.c
View file @
9035f66c
...
...
@@ -251,7 +251,7 @@ static NTSTATUS define_unix_drive( const void *in_buff, SIZE_T insize )
{
enum
device_type
type
=
DEVICE_UNKNOWN
;
TRACE
(
"defining %c: dev %s mount %s type %u
\n
"
,
TRACE
(
"defining %c: dev %s mount %s type %
l
u
\n
"
,
letter
,
debugstr_a
(
device
),
debugstr_a
(
mount_point
),
input
->
type
);
switch
(
input
->
type
)
{
...
...
@@ -467,7 +467,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
NTSTATUS
status
;
ULONG
info
=
0
;
TRACE
(
"ioctl %
x insize %u outsize %
u
\n
"
,
TRACE
(
"ioctl %
lx insize %lu outsize %l
u
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
,
irpsp
->
Parameters
.
DeviceIoControl
.
InputBufferLength
,
irpsp
->
Parameters
.
DeviceIoControl
.
OutputBufferLength
);
...
...
@@ -592,7 +592,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
else
status
=
STATUS_INVALID_PARAMETER
;
break
;
default:
FIXME
(
"ioctl %x not supported
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
);
FIXME
(
"ioctl %
l
x not supported
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
);
status
=
STATUS_NOT_SUPPORTED
;
break
;
}
...
...
@@ -641,7 +641,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
status
=
IoCreateSymbolicLink
(
&
linkW
,
&
nameW
);
if
(
status
)
{
FIXME
(
"failed to create device error %x
\n
"
,
status
);
FIXME
(
"failed to create device error %
l
x
\n
"
,
status
);
return
status
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment