server: Return the status from an async I/O APC call to the server.

This commit is contained in:
Alexandre Julliard 2007-03-20 19:27:10 +01:00
parent 06db705238
commit 50975c81f0
4 changed files with 17 additions and 1 deletions

View File

@ -682,6 +682,8 @@ static BOOL invoke_apc( const apc_call_t *call, apc_result_t *result )
case APC_ASYNC_IO:
NtCurrentTeb()->num_async_io--;
call->async_io.func( call->async_io.user, call->async_io.sb, call->async_io.status );
result->type = call->type;
result->async_io.status = ((IO_STATUS_BLOCK *)call->async_io.sb)->u.Status;
break;
case APC_VIRTUAL_ALLOC:
result->type = call->type;

View File

@ -335,6 +335,11 @@ typedef union
{
enum apc_type type;
struct
{
enum apc_type type;
unsigned int status;
} async_io;
struct
{
enum apc_type type;
unsigned int status;
@ -4694,6 +4699,6 @@ union generic_reply
struct allocate_locally_unique_id_reply allocate_locally_unique_id_reply;
};
#define SERVER_PROTOCOL_VERSION 281
#define SERVER_PROTOCOL_VERSION 282
#endif /* __WINE_WINE_SERVER_PROTOCOL_H */

View File

@ -351,6 +351,11 @@ typedef union
{
enum apc_type type;
struct
{
enum apc_type type; /* APC_ASYNC_IO */
unsigned int status; /* new status of async operation */
} async_io;
struct
{
enum apc_type type; /* APC_VIRTUAL_ALLOC */
unsigned int status; /* status returned by call */

View File

@ -179,6 +179,10 @@ static void dump_apc_result( const apc_result_t *result )
{
case APC_NONE:
break;
case APC_ASYNC_IO:
fprintf( stderr, "APC_ASYNC_IO,status=%s",
get_status_name( result->async_io.status ) );
break;
case APC_VIRTUAL_ALLOC:
fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
get_status_name( result->virtual_alloc.status ),