Fix mach_port_allocate()

This commit is contained in:
Lubos Dolezel 2017-04-07 12:00:00 +02:00
parent 6da6cb1102
commit 1dda3fd5ac
2 changed files with 2 additions and 8 deletions

View File

@ -296,17 +296,11 @@ kern_return_t _kernelrpc_mach_port_allocate_trap_impl(
struct mach_port_allocate_args args = {
.task_right_name = target,
.right_type = right,
.out_right_name = 0
.out_right_name = name
};
ret = ioctl(driver_fd, NR__kernelrpc_mach_port_allocate,
&args);
if (ret == KERN_SUCCESS)
*name = args.out_right_name;
else
*name = 0;
return ret;
}

@ -1 +1 @@
Subproject commit eaed59efe4280cfc88376cfa3616223ae43cce9b
Subproject commit 5a5b433f109933a584328ba2c161906f4165be8a