Skip to content

Commit

Permalink
set PATH before calling int2f/ae00
Browse files Browse the repository at this point in the history
This is needed to allow properly appending PATH in system.com.
  • Loading branch information
stsp committed Oct 4, 2024
1 parent 46c517e commit e9299dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ae0x.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
Expand Down Expand Up @@ -154,6 +155,7 @@ int installable_command_check(char *cmd, const char *tail)
r.d.esi = __tb_offset + sizeof(s.cmdl);
r.d.edi = 0;
dosmemput(&s, sizeof(s), __tb);
set_env("PATH", getenv("PATH"));
set_env_seg();
__dpmi_int(0x2f, &r);
set_env_sel();
Expand Down

0 comments on commit e9299dc

Please sign in to comment.