Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7afd1123
Commit
7afd1123
authored
Nov 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use UINT instead of ULONG in ioctl helpers.
To avoid typecasts in debug traces.
parent
d5e2ab1a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
21 deletions
+21
-21
cdrom.c
dlls/ntdll/unix/cdrom.c
+2
-2
file.c
dlls/ntdll/unix/file.c
+3
-3
serial.c
dlls/ntdll/unix/serial.c
+5
-5
socket.c
dlls/ntdll/unix/socket.c
+1
-1
tape.c
dlls/ntdll/unix/tape.c
+3
-3
unix_private.h
dlls/ntdll/unix/unix_private.h
+7
-7
No files found.
dlls/ntdll/unix/cdrom.c
View file @
7afd1123
...
...
@@ -2814,8 +2814,8 @@ static NTSTATUS GetInquiryData(int fd, PSCSI_ADAPTER_BUS_INFO BufferOut, DWORD O
* cdrom_DeviceIoControl
*/
NTSTATUS
cdrom_DeviceIoControl
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
{
DWORD
sz
=
0
;
NTSTATUS
status
=
STATUS_SUCCESS
;
...
...
dlls/ntdll/unix/file.c
View file @
7afd1123
...
...
@@ -5095,9 +5095,9 @@ static NTSTATUS server_write_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE
/* do an ioctl call through the server */
static
NTSTATUS
server_ioctl_file
(
HANDLE
handle
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
PVOID
apc_context
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
const
void
*
in_buffer
,
U
LONG
in_size
,
PVOID
out_buffer
,
U
LONG
out_size
)
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
const
void
*
in_buffer
,
U
INT
in_size
,
PVOID
out_buffer
,
U
INT
out_size
)
{
struct
async_irp
*
async
;
NTSTATUS
status
;
...
...
dlls/ntdll/unix/serial.c
View file @
7afd1123
...
...
@@ -71,7 +71,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
comm
);
static
const
char
*
iocode2str
(
DWORD
ioc
)
static
const
char
*
iocode2str
(
UINT
ioc
)
{
switch
(
ioc
)
{
...
...
@@ -1096,8 +1096,8 @@ static NTSTATUS xmit_immediate(HANDLE hDevice, int fd, const char* ptr)
}
static
NTSTATUS
io_control
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
{
DWORD
sz
=
0
,
access
=
FILE_READ_DATA
;
NTSTATUS
status
=
STATUS_SUCCESS
;
...
...
@@ -1320,8 +1320,8 @@ static NTSTATUS io_control( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, vo
* serial_DeviceIoControl
*/
NTSTATUS
serial_DeviceIoControl
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
{
NTSTATUS
status
;
...
...
dlls/ntdll/unix/socket.c
View file @
7afd1123
...
...
@@ -1487,7 +1487,7 @@ static int get_sock_type( HANDLE handle )
NTSTATUS
sock_ioctl
(
HANDLE
handle
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
ULONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
U
INT
code
,
void
*
in_buffer
,
UINT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
{
int
fd
,
needs_close
=
FALSE
;
NTSTATUS
status
;
...
...
dlls/ntdll/unix/tape.c
View file @
7afd1123
...
...
@@ -66,7 +66,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
tape
);
static
const
char
*
io2str
(
DWORD
io
)
static
const
char
*
io2str
(
unsigned
int
io
)
{
switch
(
io
)
{
...
...
@@ -519,8 +519,8 @@ static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data )
* tape_DeviceIoControl
*/
NTSTATUS
tape_DeviceIoControl
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
{
DWORD
sz
=
0
;
NTSTATUS
status
=
STATUS_INVALID_PARAMETER
;
...
...
dlls/ntdll/unix/unix_private.h
View file @
7afd1123
...
...
@@ -252,21 +252,21 @@ extern void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid ) DECLSPEC_HIDD
extern
NTSTATUS
open_hkcu_key
(
const
char
*
path
,
HANDLE
*
key
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
cdrom_DeviceIoControl
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
DECLSPEC_HIDDEN
;
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
serial_DeviceIoControl
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
DECLSPEC_HIDDEN
;
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
serial_FlushBuffersFile
(
int
fd
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
sock_ioctl
(
HANDLE
handle
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
ULONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
DECLSPEC_HIDDEN
;
U
INT
code
,
void
*
in_buffer
,
UINT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
sock_read
(
HANDLE
handle
,
int
fd
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
void
*
buffer
,
ULONG
length
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
sock_write
(
HANDLE
handle
,
int
fd
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
const
void
*
buffer
,
ULONG
length
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
tape_DeviceIoControl
(
HANDLE
device
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
U
LONG
code
,
void
*
in_buffer
,
U
LONG
in_size
,
void
*
out_buffer
,
ULONG
out_size
)
DECLSPEC_HIDDEN
;
IO_STATUS_BLOCK
*
io
,
U
INT
code
,
void
*
in_buffer
,
U
INT
in_size
,
void
*
out_buffer
,
UINT
out_size
)
DECLSPEC_HIDDEN
;
extern
struct
async_fileio
*
alloc_fileio
(
DWORD
size
,
async_callback_t
callback
,
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
void
release_fileio
(
struct
async_fileio
*
io
)
DECLSPEC_HIDDEN
;
...
...
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