Changeset 1039 for trunk/dll/subj.c


Ignore:
Timestamp:
Jul 6, 2008, 12:16:21 AM (17 years ago)
Author:
Gregg Young
Message:

Removed unnecessary xfrees and included fortify.h where needed; moved several misplaced (x)frees;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/subj.c

    r1009 r1039  
    3232#include "strutil.h"                    // GetPString
    3333#include "fm3dll.h"
     34#include "fortify.h"
    3435
    3536static PSZ pszSrcFile = __FILE__;
     
    5758    pfealist = xmallocz(1024, pszSrcFile, __LINE__);
    5859    if (pfealist)
    59     xfree(pgealist, pszSrcFile, __LINE__);
     60    free(pgealist);
    6061    else {
    6162      pfealist->cbList = 1024;
     
    6566      rc = DosQueryPathInfo(filename, FIL_QUERYEASFROMLIST,
    6667                            (PVOID) & eaop, (ULONG) sizeof(EAOP2));
    67       xfree(pgealist, pszSrcFile, __LINE__);
     68      free(pgealist);
    6869      if (!rc) {
    6970        pfea = &eaop.fpFEA2List->list[0];
     
    7475        subject[1023] = 0;
    7576      }
    76       xfree(pfealist, pszSrcFile, __LINE__);
     77      free(pfealist);
    7778      if (rc == ERROR_SHARING_VIOLATION || rc == ERROR_ACCESS_DENIED) {
    7879        saymsg(MB_CANCEL,
Note: See TracChangeset for help on using the changeset viewer.