[PATCH 2/3] ntdll: Support creating processes with specified parent.
Alexandre Julliard
julliard at winehq.org
Mon Dec 9 12:54:04 CST 2019
Paul Gofman <gofmanp at gmail.com> writes:
> @@ -1148,11 +1149,26 @@ DECL_HANDLER(new_process)
> return;
> }
>
> + if (req->parent_process)
> + {
> + if (!(parent = get_process_from_handle( req->parent_process, PROCESS_CREATE_PROCESS)))
> + {
> + set_error(STATUS_INVALID_HANDLE);
> + close(socket_fd);
> + return;
> + }
> + parent_thread = get_process_first_thread(parent);
Picking the first thread seems arbitrary. This probably needs some more
restructuring.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list