Changeset 1009 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
May 10, 2008, 9:51:58 AM (18 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/mainwnd.c

    r989 r1009  
    182182      WinEnableWindow(WinQueryWindow(hwndMain, QW_PARENT), TRUE);
    183183      fNoTileUpdate = FALSE;
    184       xfree((char *)mp1);
     184      xfree((char *)mp1, pszSrcFile, __LINE__);
    185185      if (fAutoTile)
    186186        TileChildren(hwndMain, TRUE);
     
    511511      WinSetMultWindowPos(WinQueryAnchorBlock(hwnd), &swp[2], numtools);
    512512    }
    513     xfree(swp);
     513    xfree(swp, pszSrcFile, __LINE__);
    514514  }
    515515  WinInvalidateRect(hwnd, NULL, TRUE);
     
    10051005              }
    10061006            }
    1007             xfree(s);
     1007            xfree(s, pszSrcFile, __LINE__);
    10081008          }
    10091009        }
     
    15511551        PostMsg(hwnd, UM_FOCUSME, MPVOID, MPVOID);
    15521552        PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    1553         xfree(pszCmdLine);
     1553        xfree(pszCmdLine, pszSrcFile, __LINE__);
    15541554      }
    15551555    }
     
    16101610                                   SEPARATEKEEP : SEPARATE),
    16111611                       directory, list, NULL, pszSrcFile, __LINE__);
    1612             xfree(list);
     1612            xfree(list, pszSrcFile, __LINE__);
    16131613            WinDestroyWindow(hwnd);
    16141614            break;
     
    22382238  case UM_SETUP:
    22392239    if (mp1)
    2240       strcpy(lastcmd, (CHAR *) mp1);
     2240      strcpy(lastcmd, (CHAR *)mp1);
    22412241    return 0;
    22422242
     
    58065806      if (fUserComboBox)
    58075807        WinSetWindowText(WinWindowFromID(hwndUserlist, CBID_EDIT),
    5808                          (CHAR *) mp1);
    5809       if (add_udir(FALSE, (CHAR *) mp1)) {
     5808                         (CHAR *)mp1);
     5809      if (add_udir(FALSE, (CHAR *)mp1)) {
    58105810        if (fUserComboBox && fAutoAddDirs) {
    58115811          WinSendMsg(hwndUserlist, LM_INSERTITEM,
    58125812                     MPFROM2SHORT(LIT_SORTASCENDING, 0),
    5813                      MPFROMP((CHAR *) mp1));
     5813                     MPFROMP((CHAR *)mp1));
    58145814        }
    58155815      }
     
    59105910
    59115911  case UM_ADDTOMENU:
    5912     AddToMenu((CHAR *) mp1, WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
     5912    AddToMenu((CHAR *)mp1, WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    59135913                                            FID_MENU));
    59145914    return 0;
     
    62376237                                  MPFROMP(pszStateName),
    62386238                                  MPVOID)) {
    6239                   xfree(pszStateName);
     6239                  xfree(pszStateName, pszSrcFile, __LINE__);
    62406240                }
    62416241              }
     
    63116311        if (!PostMsg(MainObjectHwnd, UM_RESTORE, MPFROMP(pszDefaultStateName), MPVOID))
    63126312          // 05 Feb 08 SHL fixme to complain?
    6313           xfree(pszDefaultStateName);
     6313          xfree(pszDefaultStateName, pszSrcFile, __LINE__);
    63146314      }
    63156315    }
Note: See TracChangeset for help on using the changeset viewer.