aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/gpxecmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/modules/gpxecmd.c')
-rw-r--r--com32/modules/gpxecmd.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/com32/modules/gpxecmd.c b/com32/modules/gpxecmd.c
index 9d4f4561..d2d90a2f 100644
--- a/com32/modules/gpxecmd.c
+++ b/com32/modules/gpxecmd.c
@@ -39,9 +39,6 @@ static void gpxecmd(const char **args)
{
char *q;
struct s_PXENV_FILE_EXEC *fx;
- com32sys_t reg;
-
- memset(&reg, 0, sizeof reg);
fx = lmalloc(sizeof *fx);
if (!fx)
@@ -60,13 +57,7 @@ static void gpxecmd(const char **args)
}
*--q = '\0';
- memset(&reg, 0, sizeof reg);
- reg.eax.w[0] = 0x0009;
- reg.ebx.w[0] = PXENV_FILE_EXEC;
- reg.edi.w[0] = OFFS(fx);
- reg.es = SEG(fx);
-
- __intcall(0x22, &reg, &reg);
+ pxe_call(PXENV_FILE_EXEC, fx);
/* This should not return... */
}