diff options
author | midipix <writeonce@midipix.org> | 2016-07-21 10:58:29 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-24 06:15:13 -0400 |
commit | c26174a7fb2eb57dd26ac3dd31e987d5199e5bc7 (patch) | |
tree | 1a424ac8ff28237d75003ee9e241133c3c4ff387 /src/driver | |
parent | e73fb6abab99e815e6b6d7f40907d532de16eaae (diff) | |
download | ptycon-c26174a7fb2eb57dd26ac3dd31e987d5199e5bc7.tar.bz2 ptycon-c26174a7fb2eb57dd26ac3dd31e987d5199e5bc7.tar.xz |
struct ptyc_driver_ctx_impl: added a pointer to the process's runtime data.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index dfaa572..b7cdc88 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -141,6 +141,10 @@ static struct ptyc_driver_ctx_impl * ptyc_driver_ctx_alloc( size_t size; struct argv_entry * entry; const char ** units; + nt_runtime_data * rtdata; + + if (ntapi->tt_get_runtime_data(&rtdata,0)) + return 0; size = sizeof(struct ptyc_driver_ctx_alloc); size += (nunits+1)*sizeof(const char *); @@ -157,6 +161,7 @@ static struct ptyc_driver_ctx_impl * ptyc_driver_ctx_alloc( ictx->meta = meta; ictx->ctx.ctx.units = ictx->units; + ictx->ctx.rtdata = rtdata; return &ictx->ctx; } |