[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
- Previous message (by thread): [PATCH 2/3] ntdll: Support creating processes with specified parent.
- Next message (by thread): [PATCH 3/3] kernel32/tests: Test invalid parent handle in test_parent_process_attribute().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [PATCH 2/3] ntdll: Support creating processes with specified parent.
- Next message (by thread): [PATCH 3/3] kernel32/tests: Test invalid parent handle in test_parent_process_attribute().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]