Changeset 1009 for trunk/dll/tools.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/tools.c

    r985 r1009  
    5252  qtloaded = TRUE;
    5353  for (x = 0; x < 50 && quicktool[x]; x++) {
    54     xfree(quicktool[x]);
     54    xfree(quicktool[x], pszSrcFile, __LINE__);
    5555    quicktool[x] = NULL;
    5656  }
     
    266266        if (prev)
    267267          prev->next = info->next;
    268         xfree(info->help);
    269         xfree(info->text);
    270         xfree(info);
     268        xfree(info->help, pszSrcFile, __LINE__);
     269        xfree(info->text, pszSrcFile, __LINE__);
     270        xfree(info, pszSrcFile, __LINE__);
    271271        fToolsChanged = TRUE;
    272272        break;
     
    364364  while (tool) {
    365365    next = tool->next;
    366     xfree(tool->help);
    367     xfree(tool->text);
    368     xfree(tool);
     366    xfree(tool->help, pszSrcFile, __LINE__);
     367    xfree(tool->text, pszSrcFile, __LINE__);
     368    xfree(tool, pszSrcFile, __LINE__);
    369369    tool = next;
    370370  }
     
    713713        if (tool) {                     /* just editing strings... */
    714714          istext = ((tool->flags & T_TEXT) != 0);
    715           xfree(tool->help);
     715          xfree(tool->help, pszSrcFile, __LINE__);
    716716          tool->help = NULL;
    717           xfree(tool->text);
     717          xfree(tool->text, pszSrcFile, __LINE__);
    718718          tool->text = NULL;
    719719          if (*help)
     
    816816      CHAR s[133];
    817817
    818       sprintf(s, GetPString(IDS_PICKTOOLTITLETEXT), (CHAR *) mp2);
     818      sprintf(s, GetPString(IDS_PICKTOOLTITLETEXT), (CHAR *)mp2);
    819819      WinSetWindowText(hwnd, s);
    820820    }
Note: See TracChangeset for help on using the changeset viewer.