From 9acfc0e4fb043413abbc2f6bd2f5d6d6678e7cbd Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Wed, 20 Jan 1999 12:45:32 +0000 Subject: [PATCH] Clear DOS extended error only for funcs >=0x2f (thanks to Dave Pickles). --- msdos/int21.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/msdos/int21.c b/msdos/int21.c index 809d71073b..0abd60ab32 100644 --- a/msdos/int21.c +++ b/msdos/int21.c @@ -1092,7 +1092,10 @@ void WINAPI DOS3Call( CONTEXT *context ) AH_reg(context) = AL_reg(context); } - DOS_ERROR( 0, 0, 0, 0 ); + if (AH_reg(context)>=0x2f) { + /* extended error is used by (at least) functions 0x2f to 0x62 */ + DOS_ERROR( 0, 0, 0, 0 ); + } RESET_CFLAG(context); /* Not sure if this is a good idea */ switch(AH_reg(context))