Changeset 985 for trunk/dll/seeall.c


Ignore:
Timestamp:
Mar 1, 2008, 2:37:14 AM (17 years ago)
Author:
Gregg Young
Message:

Update sizes dialog (ticket 44); Make max command line length user settable (ticket 199); use xfree for free in most cases (ticket 212); initial code to check for valid ini file (ticket 102); Some additional refactoring and structure rework; Some documentation updates;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r961 r985  
    3434  30 Dec 07 GKY Use TestFDates for comparing by date
    3535  15 Feb 08 GKY Prevent trap on scan of drive containing files that exceed maxpath
     36  29 Feb 08 GKY Use xfree where appropriate
     37  29 Feb 08 GKY Refactor global command line variables to notebook.h
    3638
    3739***********************************************************************/
     
    5456#include "errutil.h"                    // Dos_Error...
    5557#include "strutil.h"                    // GetPString
     58#include "notebook.h"                   // targetdirectory
    5659#include "fm3dll.h"
    5760
     
    13001303  if (ad->afhead && ad->afheadcnt) {
    13011304    for (x = 0; x < ad->afheadcnt; x++) {
    1302       if (ad->afhead[x].fullname)
    1303         free(ad->afhead[x].fullname);
    1304     }
    1305     free(ad->afhead);
     1305      xfree(ad->afhead[x].fullname);
     1306    }
     1307    xfree(ad->afhead);
    13061308    ad->afhead = NULL;
    1307     if (ad->afindex)
    1308       free(ad->afindex);
     1309    xfree(ad->afindex);
    13091310    ad->afindex = NULL;
    13101311  }
     
    18601861          pAD->ullSelectedBytes -= pAD->afhead[y].cbFile;
    18611862        }
    1862         free(pAD->afhead[y].fullname);
     1863        xfree(pAD->afhead[y].fullname);
    18631864      }
    18641865      memmove(&(pAD->afhead[x]), &(pAD->afhead[y]),
     
    19191920  pffbArray = xmalloc(ulBufBytes, pszSrcFile, __LINE__);
    19201921  if (!pffbArray) {
    1921     free(filename);
     1922    xfree(filename);
    19221923    return;
    19231924  }
     
    19571958            // Complain if pathnames exceeds max
    19581959            DosFindClose(hdir);
    1959             free(pffbArray);
    1960             free(filename);
     1960            xfree(pffbArray);
     1961            xfree(filename);
    19611962            if (!fDone) {
    19621963              fDone = TRUE;
     
    20252026  }
    20262027
    2027   free(pffbArray);
    2028   free(filename);
     2028  xfree(pffbArray);
     2029  xfree(filename);
    20292030}
    20302031
     
    42664267      }
    42674268      FreeAllFilesList(hwnd);
    4268       free(pAD);
     4269      xfree(pAD);
    42694270    }
    42704271    break;
     
    43234324#pragma alloc_text(SEEALL,InitWindow,PaintLine,SeeAllWndProc)
    43244325#pragma alloc_text(SEEALL,UpdateList,CollectList,ReSort,Mark)
    4325 #pragma alloc_text(SEEALL,BuildAList,RemoveDeleted,SeeFrameWndProc,FilterList)
     4326#pragma alloc_text(SEEALL,BuildAList,RemoveDeleted,SeeFrameWndProc,FilterList,FilterAll)
    43264327#pragma alloc_text(SEEALL2,SeeObjWndProc,MakeSeeObjWinThread,FindDupesThread,DupeDlgProc)
    43274328#pragma alloc_text(SEEALL3,FreeAllFilesList,DoADir,FindAllThread,AFDrvsWndProc)
Note: See TracChangeset for help on using the changeset viewer.