server: Make the various async I/O parameters client_ptr_t instead of void pointers.
diff --git a/server/async.c b/server/async.c
index 3a9ae34..0a69f7a 100644
--- a/server/async.c
+++ b/server/async.c
@@ -234,7 +234,7 @@
}
/* store the result of the client-side async callback */
-void async_set_result( struct object *obj, unsigned int status, unsigned int total, void *apc )
+void async_set_result( struct object *obj, unsigned int status, unsigned int total, client_ptr_t apc )
{
struct async *async = (struct async *)obj;
@@ -266,8 +266,8 @@
memset( &data, 0, sizeof(data) );
data.type = APC_USER;
data.user.func = apc;
- data.user.args[0] = (apc_param_t)(unsigned long)async->data.arg;
- data.user.args[1] = (apc_param_t)(unsigned long)async->data.iosb;
+ data.user.args[0] = async->data.arg;
+ data.user.args[1] = async->data.iosb;
data.user.args[2] = 0;
thread_queue_apc( async->thread, NULL, &data );
}