Changeset 985 for trunk/dll/misc.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/misc.c

    r960 r985  
    4040  xx Jan 08 JBS Ticket 150: fix/improve save and restore of dir cnr state at FM/2 close/reopen
    4141  21 Jan 08 GKY Stop reallocating NullStr by direct editing of empty subject and longname strings.
     42  29 Feb 08 GKY Use xfree where appropriate
    4243
    4344***********************************************************************/
     
    225226        }
    226227      }
    227       free(s);
     228      xfree(s);
    228229    }
    229230    if (releaseme)
     
    844845                  if (!PostMsg(hwnd,
    845846                               UM_FIXEDITNAME, MPVOID, MPFROMP(filename)))
    846                     free(filename);
     847                    xfree(filename);
    847848                }
    848849                if (stricmp(testname, pci->pszFileName)) {
     
    852853                    if (!PostMsg(hwnd,
    853854                                 UM_FIXEDITNAME, MPVOID, MPFROMP(filename)))
    854                       free(filename);
     855                      xfree(filename);
    855856                  }
    856857                }
     
    20122013                                  GetPString(IDS_SUBJ) : GetPString(IDS_NAME));
    20132014    WinSetWindowText(hwnd, s);
    2014     free(s);
     2015    xfree(s);
    20152016  }
    20162017}
     
    20312032             !(flWindowAttr & CV_TEXT)) ? GetPString(IDS_MINI) : NullStr);
    20322033    WinSetWindowText(hwnd, s);
    2033     free(s);
     2034    xfree(s);
    20342035  }
    20352036}
     
    20512052      sprintf(s, "F:%s", GetPString(IDS_ALLTEXT));
    20522053    WinSetWindowText(hwnd, s);
    2053     free(s);
     2054    xfree(s);
    20542055  }
    20552056}
     
    21962197      }
    21972198      numswitches = y;
    2198       free(pswb);
     2199      xfree(pswb);
    21992200      DosPostEventSem(CompactSem);
    22002201    }
Note: See TracChangeset for help on using the changeset viewer.