9 Dec
2019
9 Dec
'19
6:54 p.m.
Paul Gofman <gofmanp(a)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(a)winehq.org