diff options
author | Daniel Serpell <daniel.serpell@gmail.com> | 2020-04-27 22:45:48 -0400 |
---|---|---|
committer | Daniel Serpell <daniel.serpell@gmail.com> | 2020-04-27 22:45:48 -0400 |
commit | 5e80f6566319161a3bf9e13b8dd7ef76876fe48c (patch) | |
tree | 227abd3103bd5384048ed8390a808add03895bce | |
parent | 88d8cdc183f33daf214f371aa19ff751bcd91cc9 (diff) | |
download | emu2-5e80f6566319161a3bf9e13b8dd7ef76876fe48c.tar.gz |
Fixes passing of current-working-directory to child process.
-rw-r--r-- | src/dos.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -778,7 +778,7 @@ static int run_emulator(char *file, const char *prgname, char *cmdline, char *en drv[0] = dos_get_default_drive() + 'A'; setenv(ENV_DEF_DRIVE, drv, 1); // and CWD - setenv(ENV_CWD, (const char *)dos_get_cwd(dos_get_default_drive()), 1); + setenv(ENV_CWD, (const char *)dos_get_cwd(0), 1); // pass open file descriptors to child process for(unsigned i = 0; i < 3; i++) if(handles[i]) |