Changeset 1077 for trunk/dll/killproc.c


Ignore:
Timestamp:
Jul 18, 2008, 8:11:54 PM (17 years ago)
Author:
Steven Levine
Message:

Enhance Fortify infrastructure
Add Fortify_SetOwner Fortify_ChangeOwner Fortify_ChangeScope
Add FORTIFY_VERBOSE_SCOPE_ENTER_EXIT support
Add more fm/2 Fortify tooling and rework existing tooling for correct nesting
Still lots to do for cross-thread allocations
Add misc.h
Add walkem.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/killproc.c

    r1075 r1077  
    3838#include "errutil.h"                    // Dos_Error...
    3939#include "strutil.h"                    // GetPString
    40 #include "pathutil.h"                   // BldFullPathName
     40#include "pathutil.h"                   // BldFullPathName
    4141#include "fm3dll.h"
    4242#include "fortify.h"
     
    113113            if (!stricmp(pmi->szModName, "SYSINIT"))
    114114              GetDosPgmName(ppi->pid, s + strlen(s));
    115             else {
     115            else {
    116116              if (*pmi->szModName)
    117                 strcat(s, pmi->szModName);
     117                strcat(s, pmi->szModName);
    118118              else
    119119                strcat(s, GetPString(IDS_UNKNOWNPROCTEXT));
     
    182182            if (!stricmp((CHAR *) pmi->pName, "SYSINIT"))
    183183              GetDosPgmName(ppi->pid, s + strlen(s));
    184             else {
     184            else {
    185185              if (*pmi->pName)
    186                 strcat(s, (CHAR *) pmi->pName);
     186                strcat(s, (CHAR *) pmi->pName);
    187187              else
    188188                strcat(s, GetPString(IDS_UNKNOWNPROCTEXT));
     
    197197          }
    198198        }
    199         ppi = (QSPREC *) (ppi->pThrdRec + ppi->cTCB);
     199        ppi = (QSPREC *) (ppi->pThrdRec + ppi->cTCB);   // 22 Jun 08 SHL fixme to know why this looks odd
    200200      }                                 // while
    201201    }
     
    254254    DosDupHandle(fileno(fp), &oldstdout);
    255255    rc = runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT,
    256                 hwnd, pszSrcFile, __LINE__, NULL, NULL,
    257                 "%s", "PSTAT.EXE /C");
     256                hwnd, pszSrcFile, __LINE__, NULL, NULL,
     257                "%s", "PSTAT.EXE /C");
    258258    oldstdout = fileno(stdout);
    259259    DosDupHandle(newstdout, &oldstdout);
     
    363363      PrfWriteProfileData(fmprof,
    364364                          FM3Str,
    365                           "UseQProcStat", &fUseQProcStat, sizeof(BOOL));
     365                          "UseQProcStat", &fUseQProcStat, sizeof(BOOL));
    366366      PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID);
    367367      if (WinQueryButtonCheckstate(hwnd, KILL_CHECKBOX)) {
     
    437437          DosSleep(100);                // 05 Aug 07 GKY 250
    438438        else
    439             WinDismissDlg(hwnd, 0);
     439            WinDismissDlg(hwnd, 0);
    440440      }
    441441      else if (fUseQSysState)
    442         if (_beginthread(FillKillListThread3,
     442        if (_beginthread(FillKillListThread3,
    443443                         NULL, 65536, (PVOID) & hwnd) != -1)
    444444          DosSleep(100);//05 Aug 07 GKY 250
    445445        else
    446             WinDismissDlg(hwnd, 0);
     446            WinDismissDlg(hwnd, 0);
    447447      else {
    448448        if (_beginthread(FillKillListThread,
    449449                         NULL, 65536, (PVOID) & hwnd) != -1)
    450           DosSleep(100);                // 05 Aug 07 GKY 250
     450          DosSleep(100);                // 05 Aug 07 GKY 250
    451451        else
    452452          WinDismissDlg(hwnd, 0);
Note: See TracChangeset for help on using the changeset viewer.