Changeset 1846 for trunk/dll/undel.c


Ignore:
Timestamp:
Aug 12, 2015, 10:31:54 PM (10 years ago)
Author:
John Small
Message:

Ticket #524: Ensure no "highmem-unsafe" functions are called directly
Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/undel.c

    r1554 r1846  
    107107    else {
    108108      newstdout = -1;
    109       if (DosDupHandle(fileno(stdout), &newstdout)) {
     109      if (xDosDupHandle(fileno(stdout), &newstdout)) {
    110110        saymsg(MB_CANCEL,
    111111               hwnd,
     
    116116      }
    117117      oldstdout = fileno(stdout);
    118       DosDupHandle(fileno(fp), &oldstdout);
     118      xDosDupHandle(fileno(fp), &oldstdout);
    119119      runemf2(SEPARATE | INVISIBLE | WINDOWED | BACKGROUND | WAIT,
    120120              hwnd, pszSrcFile, __LINE__,
     
    124124              path, (undelinfo->inclsubdirs) ? " /S" : NullStr);
    125125      oldstdout = fileno(stdout);
    126       DosDupHandle(newstdout, &oldstdout);
     126      xDosDupHandle(newstdout, &oldstdout);
    127127      DosClose(newstdout);
    128128      fclose(fp);
     
    176176    ;
    177177  }
    178   DosForceDelete(szTempFile);
     178  xDosForceDelete(szTempFile);
    179179  xfree(undelinfo, pszSrcFile, __LINE__);
    180180  if (thmq) {
     
    428428
    429429          FILE *fp;
    430           CHAR s[CCHMAXPATH + 1];
    431           CHAR *modew = "w";
    432 
    433           DosForceDelete("\\FMUNDEL.CMD");
     430          CHAR s[CCHMAXPATH + 1];
     431          CHAR *modew = "w";
     432
     433          xDosForceDelete("\\FMUNDEL.CMD");
    434434          fp = xfopen("\\FMUNDEL.CMD", modew, pszSrcFile, __LINE__, FALSE);
    435435          if (fp) {
Note: See TracChangeset for help on using the changeset viewer.