diff options
author | midipix <writeonce@midipix.org> | 2020-06-24 21:16:11 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-06-24 21:16:11 +0000 |
commit | 40b1a939497bcbf31028aaeae0a9fc5917661f2c (patch) | |
tree | c8402d252dc18b5a4656d1a125a6a76f47a1598a /src/internal | |
parent | fea48d76f9cf1296a19e7b0b863f163265fad9ac (diff) | |
download | ntapi-40b1a939497bcbf31028aaeae0a9fc5917661f2c.tar.bz2 ntapi-40b1a939497bcbf31028aaeae0a9fc5917661f2c.tar.xz |
__ntapi_init_solib_fork_child_finalize(): support abstract-only first use.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/ntapi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c index db1c92a..e38b38f 100644 --- a/src/internal/ntapi.c +++ b/src/internal/ntapi.c @@ -605,9 +605,11 @@ static int32_t __ntapi_init_solib_fork_child_finalize(void) /* once here as well. */ __internals = __ntapi_internals(); - rtdata = __internals->rtdata; - if (rtdata->cid_self.process_id == pe_get_current_process_id()) + if (!(rtdata = __internals->rtdata)) + return NT_STATUS_SUCCESS; + + else if (rtdata->cid_self.process_id == pe_get_current_process_id()) return NT_STATUS_SUCCESS; rtdata->cid_parent.process_id = rtdata->cid_self.process_id; |