Changeset 1846 for trunk/dll/sysinfo.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/sysinfo.c

    r1673 r1846  
    1919  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
    2020                by temp file creation failures.
     21  12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly
     22                Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions
    2123
    2224***********************************************************************/
     
    7476    else {
    7577      newstdout = -1;
    76       if (DosDupHandle(fileno(stdout), &newstdout)) {
     78      if (xDosDupHandle(fileno(stdout), &newstdout)) {
    7779        fclose(fp);
    7880        goto Abort;
    7981      }
    8082      oldstdout = fileno(stdout);
    81       DosDupHandle(fileno(fp), &oldstdout);
     83      xDosDupHandle(fileno(fp), &oldstdout);
    8284      runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT,
    8385              hwnd, pszSrcFile, __LINE__,
    8486              NULL, NULL, "%s", szTempFile);
    8587      oldstdout = fileno(stdout);
    86       DosDupHandle(newstdout, &oldstdout);
     88      xDosDupHandle(newstdout, &oldstdout);
    8789      DosClose(newstdout);
    8890      fclose(fp);
     
    120122  }
    121123  if (szTempFile)
    122     DosForceDelete(szTempFile);
     124    xDosForceDelete(szTempFile);
    123125}
    124126
Note: See TracChangeset for help on using the changeset viewer.