Changeset 1009 for trunk/dll/common.c


Ignore:
Timestamp:
May 10, 2008, 9:51:58 AM (17 years ago)
Author:
Steven Levine
Message:

Add xfree xstrdup Fortify support
Add MT capable Fortify scope logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/common.c

    r985 r1009  
    578578      else {
    579579        if (mp1) {
    580           if (!mp2 && !stricmp(lastfile, (CHAR *) mp1))
     580          if (!mp2 && !stricmp(lastfile, (CHAR *)mp1))
    581581            return 0;
    582           strcpy(lastfile, (CHAR *) mp1);
     582          strcpy(lastfile, (CHAR *)mp1);
    583583          s = xstrdup(lastfile, pszSrcFile, __LINE__);
    584584        }
     
    587587        if (!PostMsg((fComments) ? hwndAutoMLE : hwndAutoview,
    588588                     UM_LOADFILE, MPFROMP(s), MPVOID)) {
    589           xfree(s);
     589          xfree(s, pszSrcFile, __LINE__);
    590590        }
    591591      }
     
    727727        WinSendMsg(hwnd, UM_FIXCNRMLE, MPFROMLONG(CCHMAXPATH), MPVOID);
    728728        MLEdelete(WinWindowFromID(hwnd, CID_MLE),
    729                   0, strlen((CHAR *) mp1) + 1);
    730         WinSetDlgItemText(hwnd, CID_MLE, (CHAR *) mp1);
    731         p = strrchr((CHAR *) mp1, '\\');
     729                  0, strlen((CHAR *)mp1) + 1);
     730        WinSetDlgItemText(hwnd, CID_MLE, (CHAR *)mp1);
     731        p = strrchr((CHAR *)mp1, '\\');
    732732        if (p) {
    733733          p++;
    734           MLEsetcurposa(WinWindowFromID(hwnd, CID_MLE), (p - (CHAR *) mp1));
    735           MLEsetcurposc(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *) mp1));
     734          MLEsetcurposa(WinWindowFromID(hwnd, CID_MLE), (p - (CHAR *)mp1));
     735          MLEsetcurposc(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *)mp1));
    736736        }
    737737        else
    738           MLEsetcurpos(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *) mp1));
     738          MLEsetcurpos(WinWindowFromID(hwnd, CID_MLE), strlen((CHAR *)mp1));
    739739      }
    740740      else if (mp2) {
     
    746746          Broadcast(WinQueryAnchorBlock(hwnd),
    747747                    dcd->hwndParent, UM_UPDATERECORD, mp2, MPVOID);
    748           xfree(mp2);
     748          xfree(mp2, pszSrcFile, __LINE__);
    749749        }
    750750      }
Note: See TracChangeset for help on using the changeset viewer.