Changeset 1075 for trunk/dll/killproc.c


Ignore:
Timestamp:
Jul 18, 2008, 6:44:01 AM (17 years ago)
Author:
Gregg Young
Message:

Debulked TMP code; Added comments;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/killproc.c

    r1073 r1075  
    1818  02 Sep 07 GKY Replaced DosQProcStatus with DosQuerySysState to fix trap in thunk code
    1919  02 Sep 07 SHL Expand FillKillListThread2 stack to avoid exception in __TNK
     20  16 JUL 08 GKY Use TMP directory for temp files
    2021
    2122***********************************************************************/
     
    237238
    238239  WinSendDlgItemMsg(hwnd, KILL_LISTBOX, LM_DELETEALL, MPVOID, MPVOID);
    239   if (fUseTmp)
    240     BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#");
    241   else
    242     strcpy(s, "$PSTAT#$.#$#");
     240  BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#");
    243241  unlinkf("%s", s);
    244242  fp = fopen(s, "w");
     
    307305  }
    308306Abort:
    309   if (fUseTmp) {
    310     CHAR szTempFile[CCHMAXPATH];
    311 
    312     BldFullPathName(szTempFile, pTmpDir, "$PSTAT#$.#$#");
    313     DosForceDelete(szTempFile);
    314   }
    315   else
    316     DosForceDelete("$PSTAT#$.#$#");
     307  BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#");
     308  DosForceDelete(s);
    317309  PostMsg(hwnd, UM_CONTAINER_FILLED, MPVOID, MPVOID);
    318310  WinDestroyMsgQueue(thmq);
Note: See TracChangeset for help on using the changeset viewer.