summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/msdos/msdos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/msdos/msdos.c b/libc/msdos/msdos.c
index f9bfb9b..973b0a6 100644
--- a/libc/msdos/msdos.c
+++ b/libc/msdos/msdos.c
@@ -181,6 +181,8 @@ char ** __argv;
{
int length, i, argc=1, s=0;
unsigned char *ptr, *p;
+ int es=__get_es();
+
__set_es(__psp); /* Pointer to the args */
length = __peek_es(0x80); /* Length of cmd line */
if( length > 0 )
@@ -212,6 +214,7 @@ char ** __argv;
}
__argv[argc] = 0;
}
+ __set_es(es);
}
#endif