diff options
Diffstat (limited to 'src')
-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; |