[PATCH 2/3] ntdll: Support creating processes with specified parent. (original) (raw)

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 @@ DECLHANDLER(newprocess) return; }

+ if (req->parentprocess) + { + if (!(parent = getprocessfromhandle( req->parentprocess, PROCESSCREATEPROCESS))) + { + seterror(STATUSINVALIDHANDLE); + close(socketfd); + return; + } + parentthread = getprocessfirstthread(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