Skip to content

Commit e9299dc

Browse files
committed
set PATH before calling int2f/ae00
This is needed to allow properly appending PATH in system.com.
1 parent 46c517e commit e9299dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ae0x.c

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
#include <stdio.h>
22+
#include <stdlib.h>
2223
#include <stdint.h>
2324
#include <string.h>
2425
#include <ctype.h>
@@ -154,6 +155,7 @@ int installable_command_check(char *cmd, const char *tail)
154155
r.d.esi = __tb_offset + sizeof(s.cmdl);
155156
r.d.edi = 0;
156157
dosmemput(&s, sizeof(s), __tb);
158+
set_env("PATH", getenv("PATH"));
157159
set_env_seg();
158160
__dpmi_int(0x2f, &r);
159161
set_env_sel();

0 commit comments

Comments
 (0)