diff options
author | midipix <writeonce@midipix.org> | 2020-06-19 21:40:48 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-06-19 22:25:35 +0000 |
commit | abd389de79a2dcd5e139f2f52fba8b43c4ef42e9 (patch) | |
tree | 8b24f00050f592680783f0186b76b9161de33b0c | |
parent | 71b1d8532e55124c0c1ae2253cd286cc62d74ffb (diff) | |
download | ntapi-abd389de79a2dcd5e139f2f52fba8b43c4ef42e9.tar.bz2 ntapi-abd389de79a2dcd5e139f2f52fba8b43c4ef42e9.tar.xz |
__ntapi_tt_fork_finalize(): update rtdata->cid_self, rtdata->cid_parent.
-rw-r--r-- | src/process/ntapi_tt_fork.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process/ntapi_tt_fork.c b/src/process/ntapi_tt_fork.c index 50ce484..5690164 100644 --- a/src/process/ntapi_tt_fork.c +++ b/src/process/ntapi_tt_fork.c @@ -27,6 +27,12 @@ static intptr_t __fastcall __ntapi_tt_fork_finalize(void ** hprocess) __internals = __ntapi_internals(); rtdata = __internals->rtdata; + rtdata->cid_parent.process_id = rtdata->cid_self.process_id; + rtdata->cid_parent.thread_id = rtdata->cid_self.thread_id; + + rtdata->cid_self.process_id = pe_get_current_process_id(); + rtdata->cid_self.thread_id = pe_get_current_thread_id(); + if ((status = __ntapi->zw_duplicate_object( __internals->hprocess, __internals->hprocess, |