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

    r1738 r1846  
    3535  22 Aug 14 JBS Ticket #519: Corrected mis-coded but probably harmless calls to strtol
    3636                and removed unneeded second parameter variables.
     37  12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly
     38                Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions
    3739
    3840***********************************************************************/
     
    278280  else {
    279281    newstdout = -1;
    280     rc = DosDupHandle(fileno(stdout), &newstdout);
     282    rc = xDosDupHandle(fileno(stdout), &newstdout);
    281283    if (rc)
    282284      Dos_Error(MB_CANCEL, rc, hwnd, __FILE__, __LINE__, PCSZ_DOSDUPHANDLE);
    283285    oldstdout = fileno(stdout);
    284     DosDupHandle(fileno(fp), &oldstdout);
     286    xDosDupHandle(fileno(fp), &oldstdout);
    285287    rc = runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT,
    286288                 hwnd, pszSrcFile, __LINE__, NULL, NULL,
    287289                 "%s", "PSTAT.EXE /C");
    288290    oldstdout = fileno(stdout);
    289     DosDupHandle(newstdout, &oldstdout);
     291    xDosDupHandle(newstdout, &oldstdout);
    290292    DosClose(newstdout);
    291293    fclose(fp);
     
    336338Abort:
    337339  BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#");
    338   DosForceDelete(s);
     340  xDosForceDelete(s);
    339341  PostMsg(hwnd, UM_CONTAINER_FILLED, MPVOID, MPVOID);
    340342  WinDestroyMsgQueue(thmq);
Note: See TracChangeset for help on using the changeset viewer.