ntdll: Clear the reply data on error in virtual_locked_server_call().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-07-09 10:09:33 +02:00
parent 6f862a1ad8
commit 113e9811c4
1 changed files with 1 additions and 0 deletions

View File

@ -2911,6 +2911,7 @@ unsigned int virtual_locked_server_call( void *req_ptr )
ret = server_call_unlocked( req );
if (has_write_watch) update_write_watches( addr, size, wine_server_reply_size( req ));
}
else memset( &req->u.reply, 0, sizeof(req->u.reply) );
server_leave_uninterrupted_section( &virtual_mutex, &sigset );
return ret;
}