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
1a7cacc4
Commit
1a7cacc4
authored
Nov 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use unsigned int instead of NTSTATUS in async callbacks.
To avoid typecasts in debug traces.
parent
7afd1123
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
file.c
dlls/ntdll/unix/file.c
+4
-4
server.c
dlls/ntdll/unix/server.c
+1
-1
socket.c
dlls/ntdll/unix/socket.c
+3
-3
unix_private.h
dlls/ntdll/unix/unix_private.h
+1
-1
No files found.
dlls/ntdll/unix/file.c
View file @
1a7cacc4
...
...
@@ -4903,7 +4903,7 @@ struct async_fileio *alloc_fileio( DWORD size, async_callback_t callback, HANDLE
}
/* callback for irp async I/O completion */
static
BOOL
irp_completion
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
irp_completion
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
struct
async_irp
*
async
=
user
;
...
...
@@ -4921,7 +4921,7 @@ static BOOL irp_completion( void *user, ULONG_PTR *info, NTSTATUS *status )
return
TRUE
;
}
static
BOOL
async_read_proc
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
async_read_proc
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
struct
async_fileio_read
*
fileio
=
user
;
int
fd
,
needs_close
,
result
;
...
...
@@ -4971,7 +4971,7 @@ static BOOL async_read_proc( void *user, ULONG_PTR *info, NTSTATUS *status )
return
TRUE
;
}
static
BOOL
async_write_proc
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
async_write_proc
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
struct
async_fileio_write
*
fileio
=
user
;
int
result
,
fd
,
needs_close
;
...
...
@@ -6327,7 +6327,7 @@ NTSTATUS WINAPI NtUnlockFile( HANDLE handle, IO_STATUS_BLOCK *io_status, LARGE_I
}
static
BOOL
read_changes_apc
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
read_changes_apc
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
struct
async_fileio_read_changes
*
fileio
=
user
;
int
size
=
0
;
...
...
dlls/ntdll/unix/server.c
View file @
1a7cacc4
...
...
@@ -371,7 +371,7 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result, BOO
{
struct
async_fileio
*
user
=
wine_server_get_ptr
(
call
->
async_io
.
user
);
ULONG_PTR
info
=
call
->
async_io
.
result
;
NTSTATUS
status
;
unsigned
int
status
;
result
->
type
=
call
->
type
;
status
=
call
->
async_io
.
status
;
...
...
dlls/ntdll/unix/socket.c
View file @
1a7cacc4
...
...
@@ -809,7 +809,7 @@ static NTSTATUS try_recv( int fd, struct async_recv_ioctl *async, ULONG_PTR *siz
return
status
;
}
static
BOOL
async_recv_proc
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
async_recv_proc
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
struct
async_recv_ioctl
*
async
=
user
;
int
fd
,
needs_close
;
...
...
@@ -1046,7 +1046,7 @@ static NTSTATUS try_send( int fd, struct async_send_ioctl *async )
return
STATUS_SUCCESS
;
}
static
BOOL
async_send_proc
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
async_send_proc
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
struct
async_send_ioctl
*
async
=
user
;
int
fd
,
needs_close
;
...
...
@@ -1293,7 +1293,7 @@ static NTSTATUS try_transmit( int sock_fd, int file_fd, struct async_transmit_io
return
STATUS_SUCCESS
;
}
static
BOOL
async_transmit_proc
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
)
static
BOOL
async_transmit_proc
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
)
{
int
sock_fd
,
file_fd
=
-
1
,
sock_needs_close
=
FALSE
,
file_needs_close
=
FALSE
;
struct
async_transmit_ioctl
*
async
=
user
;
...
...
dlls/ntdll/unix/unix_private.h
View file @
1a7cacc4
...
...
@@ -76,7 +76,7 @@ static inline struct ntdll_thread_data *ntdll_get_thread_data(void)
}
/* returns TRUE if the async is complete; FALSE if it should be restarted */
typedef
BOOL
async_callback_t
(
void
*
user
,
ULONG_PTR
*
info
,
NTSTATUS
*
status
);
typedef
BOOL
async_callback_t
(
void
*
user
,
ULONG_PTR
*
info
,
unsigned
int
*
status
);
struct
async_fileio
{
...
...
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