Commit 05410c4a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ntdll: Use callback stored in async user for calling APC_ASYNC_IO.

parent b82782a9
......@@ -406,10 +406,9 @@ static BOOL invoke_apc( const apc_call_t *call, apc_result_t *result )
{
void *apc = NULL, *arg = NULL;
IO_STATUS_BLOCK *iosb = wine_server_get_ptr( call->async_io.sb );
NTSTATUS (*func)(void *, IO_STATUS_BLOCK *, NTSTATUS, void **, void **) = wine_server_get_ptr( call->async_io.func );
NTSTATUS (**user)(void *, IO_STATUS_BLOCK *, NTSTATUS, void **, void **) = wine_server_get_ptr( call->async_io.user );
result->type = call->type;
result->async_io.status = func( wine_server_get_ptr( call->async_io.user ),
iosb, call->async_io.status, &apc, &arg );
result->async_io.status = (*user)( user, iosb, call->async_io.status, &apc, &arg );
if (result->async_io.status != STATUS_PENDING)
{
result->async_io.total = iosb->Information;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment