Subversion Repositories SvarDOS

Rev

Rev 1741 | Rev 1743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1741 Rev 1742
Line 607... Line 607...
607
        break;
607
        break;
608
      }
608
      }
609
 
609
 
610
    } while (findnext(dta) == 0);
610
    } while (findnext(dta) == 0);
611
 
611
 
-
 
612
    /* no match? kein gluck! (this can happen when filtering attribs with /A:xxx
-
 
613
     * because while findfirst() succeeds, all entries can be rejected) */
-
 
614
    if (dtabufcount == 0) {
-
 
615
      nls_outputnl_doserr(2); /* "File not found" */
-
 
616
      return(CMD_FAIL);
-
 
617
    }
-
 
618
 
612
    /* sort the list - the tricky part is that my array is a far address while
619
    /* sort the list - the tricky part is that my array is a far address while
613
     * qsort works only with near pointers, so I have to use an ugly (and
620
     * qsort works only with near pointers, so I have to use an ugly (and
614
     * global) auxiliary table */
621
     * global) auxiliary table */
615
    for (i = 0; i < dtabufcount; i++) buf->orderidx[i] = i;
622
    for (i = 0; i < dtabufcount; i++) buf->orderidx[i] = i;
616
    qsort(buf->orderidx, dtabufcount, 2, &sortcmp);
623
    qsort(buf->orderidx, dtabufcount, 2, &sortcmp);