www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000382

When Created: 01/18/2006 09:51:34
Against DJGPP version: 2.04a1
By whom: gerritvn@gpvno.co.za
Abstract: LIBC function remove() fails randomly on ROM-DOS with LFN support
LIBC function remove() fails randomly on ROM-DOS with LFN support.

Solution added: 01/18/2006 09:58:59
By whom: gerritvn@gpvno.co.za
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);

Fixed in version cvs on 01/19/2006 08:04:24
By whom: dj@delorie.com



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010