From 3995d65255b673ad4575657782075652532f9dd7 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 22 Jul 2016 04:04:32 -0400 Subject: ptyc_spawn(): support '/??/...' executable path arguments. --- src/pty/ptyc_spawn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pty') diff --git a/src/pty/ptyc_spawn.c b/src/pty/ptyc_spawn.c index 9ad8e9b..3655d19 100644 --- a/src/pty/ptyc_spawn.c +++ b/src/pty/ptyc_spawn.c @@ -79,7 +79,9 @@ int __stdcall ptyc_spawn(struct ptyc_driver_ctx * dctx) : peb->process_params->cwd_handle; patharg = (dctx->cctx->eargv[0][0] == '/') - ? &dctx->cctx->eargv[0][1] + ? (dctx->cctx->eargv[0][1] == '?') + ? &dctx->cctx->eargv[0][0] + : &dctx->cctx->eargv[0][1] : &dctx->cctx->eargv[0][0]; /* hfile */ -- cgit v1.2.3