Doing some research in int21.c shows that many functions that rely on CFLAG dont set it when they are in error state.
IMHO many DOS programs are already broken today since these functions appear to be successfull at every moment.
For example : INT21_FileDateTime (handler for function 0x57, file attributes)
-----Message d'origine----- De : Jukka Heinonen [mailto:jhei@iki.fi] Envoyé : lundi 18 août 2003 20:14 À : wine-devel@winehq.com Objet : Re: Int21 : Dont reset systematically CFLAG
Sylvain Petreolle wrote:
Dont reset systematically CFLAG when calling the int 21 handler. Some functions dont change it.
This patch must not be applied because it is highly likely that it will break almost all DOS programs.
Fix itself is correct but before this patch can be applied it must be made sure that all functions that are supposed to reset CFLAG really reset it.