Hans Leidekker : webservices: Store the async context directly in struct receive_message.
Alexandre Julliard
julliard at winehq.org
Fri Dec 8 13:51:30 CST 2017
Module: wine
Branch: master
Commit: a81671b522c0a4d2c3326ec982b8b3c72183af20
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a81671b522c0a4d2c3326ec982b8b3c72183af20
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Dec 8 15:49:37 2017 +0100
webservices: Store the async context directly in struct receive_message.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/webservices/channel.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c
index 9093a6c..cce5608 100644
--- a/dlls/webservices/channel.c
+++ b/dlls/webservices/channel.c
@@ -1847,7 +1847,7 @@ struct receive_message
void *value;
ULONG size;
ULONG *index;
- const WS_ASYNC_CONTEXT *ctx;
+ WS_ASYNC_CONTEXT ctx;
};
static void receive_message_proc( struct task *task )
@@ -1858,9 +1858,9 @@ static void receive_message_proc( struct task *task )
hr = receive_message( r->channel, r->msg, r->desc, r->count, r->option, r->read_option, r->heap, r->value,
r->size, r->index );
- TRACE( "calling %p(%08x)\n", r->ctx->callback, hr );
- r->ctx->callback( hr, WS_LONG_CALLBACK, r->ctx->callbackState );
- TRACE( "%p returned\n", r->ctx->callback );
+ TRACE( "calling %p(%08x)\n", r->ctx.callback, hr );
+ r->ctx.callback( hr, WS_LONG_CALLBACK, r->ctx.callbackState );
+ TRACE( "%p returned\n", r->ctx.callback );
}
static HRESULT queue_receive_message( struct channel *channel, WS_MESSAGE *msg, const WS_MESSAGE_DESCRIPTION **desc,
@@ -1882,7 +1882,7 @@ static HRESULT queue_receive_message( struct channel *channel, WS_MESSAGE *msg,
r->value = value;
r->size = size;
r->index = index;
- r->ctx = ctx;
+ r->ctx = *ctx;
return queue_task( &channel->recv_q, &r->task );
}
More information about the wine-cvs
mailing list