lib: xpc: fix overlapping variable uses in xpc_buffer_t

This commit is contained in:
2026-03-21 10:52:16 +00:00
parent aa155824d3
commit 81b9e7777a
2 changed files with 19 additions and 33 deletions

View File

@@ -52,14 +52,10 @@ kern_status_t xpc_buffer_write(
return KERN_OK;
}
kern_status_t status
= xpc_msg_write(buf->buf_origin, buf->buf_offset, in, to_write);
if (status != KERN_OK) {
return status;
}
/* TODO */
*nr_written = to_write;
return KERN_OK;
return xpc_msg_write(
buf->buf_origin,
buf->buf_offset,
in,
to_write,
nr_written);
}