delorie.com/djgpp/bugs/show.cgi | search |
LIBC function remove() fails randomly on ROM-DOS with LFN support.
Change REMOVE.C by adding this line: r.x.cx = 0; /* Fix for ROM-DOS */ resulting in: if (directory_p) r.h.ah = 0x3a; /* DOS Remove Directory function */ else r.h.ah = 0x41; /* DOS Remove File function */ if(use_lfn) { r.h.al = r.h.ah; r.h.ah = 0x71; r.x.si = 0; /* No Wildcards */ } r.x.cx = 0; /* Fix for ROM-DOS */ r.x.dx = __tb_offset; r.x.ds = __tb_segment; __dpmi_int(0x21, &r);
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |