Changeset 1891 for trunk/dll/init.c


Ignore:
Timestamp:
Jan 31, 2020, 3:47:37 AM (6 years ago)
Author:
Steven Levine
Message:

Rework FreeCnrItem to ensure all CNRITEMs deleted.
Use WinSendMsg CMA_NEXT.
Was using preccNextRecord which is not recommended because control does
not maintain linkage after inserts and deletes.
Note: arccnrs.c still needs to be reworked to use common functions from filldir.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1877 r1891  
    218218#include "systemf.h"                    // runemf2
    219219
    220 #if 0
    221 #define  __PMPRINTF__
     220#ifdef PMPRINTF
     221#define  _PMPRINTF_                     // Enable debug macros
    222222#include "PMPRINTF.H"
    223223#endif
     
    748748  }
    749749
    750 #if 0
     750#ifdef PMPRINTF
    751751  PmPrintfDisplayInterfaceVersionInfo();
    752752  PmPrintfQueueNameThisProcess(NULL);
     
    940940        strcpy(inipath, profile);
    941941      }
    942     } //fixme the DosCopies probably fail if the INI isn't in the FM2 directory GKY 06 Aug 11
     942    } // FIXME the DosCopies probably fail if the INI isn't in the FM2 directory GKY 06 Aug 11
    943943    if (!*inipath)
    944944      strcpy(inipath, profile);
     
    953953        fWantFirstTimeInit = TRUE;
    954954    }
    955     if (!fWantFirstTimeInit) { //Check the ini file header and restore from backup if corupted
     955    if (!fWantFirstTimeInit) {
     956      // Check the ini file header and restore from backup if corupted
    956957      if (!CheckFileHeader(inipath, "\xff\xff\xff\xff\x14\x00\x00\x00", 0L)) {
    957958        saymsg(MB_ENTER,HWND_DESKTOP, GetPString(IDS_DEBUG_STRING),
     
    984985    }
    985986
    986     // 10 Jan 08 SHL fixme to do first time if new ini
     987    // 10 Jan 08 SHL FIXME to do first time if new ini
    987988    // 10 Jan 08 SHL post UM_FIRSTTIME to main window
    988989    if (!fmprof) {
     
    12251226  prntabspaces = 8;
    12261227  CollectorsortFlags = sortFlags = SORT_FILENAME | SORT_DIRSFIRST;
    1227   //Get default Country info
     1228  // Get default Country info
    12281229  {
    12291230    COUNTRYCODE Country    = {0};
     
    12611262      fLVM = TRUE;
    12621263
    1263     //Check for unlock.exe
     1264    // Check for unlock.exe
    12641265    if (!xDosQueryAppType(PCSZ_UNLOCKEXE, &ulAppType))
    12651266      fUnlock = TRUE;
     
    13241325  editor = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13251326  if (!editor)
    1326     return 0; //already complained
     1327    return 0; // already complained
    13271328  viewer = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13281329  if (!viewer)
    1329     return 0; //already complained
     1330    return 0; // already complained
    13301331  virus = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13311332  if (!virus)
    1332     return 0; //already complained
     1333    return 0; // already complained
    13331334  compare = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13341335  if (!compare)
    1335     return 0; //already complained
     1336    return 0; // already complained
    13361337  binview = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13371338  if (!binview)
    1338     return 0; //already complained
     1339    return 0; // already complained
    13391340  bined = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13401341  if (!bined)
    1341     return 0; //already complained
     1342    return 0; // already complained
    13421343  dircompare = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13431344  if (!dircompare)
    1344     return 0; //already complained
     1345    return 0; // already complained
    13451346  ftprun = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13461347  if (!ftprun)
    1347     return 0; //already complained
     1348    return 0; // already complained
    13481349  httprun = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13491350  if (!httprun)
    1350     return 0; //already complained
     1351    return 0; // already complained
    13511352  mailrun = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13521353  if (!mailrun)
    1353     return 0; //already complained
     1354    return 0; // already complained
    13541355  pszTreeEnvVarList = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    13551356  if (!pszTreeEnvVarList)
    1356     return 0; //already complained
     1357    return 0; // already complained
    13571358  size = sizeof(BOOL);
    13581359  PrfQueryProfileData(fmprof, FM3Str, "DontSuggestAgain", &fDontSuggestAgain, &size);
     
    18031804  int ok = 0;
    18041805
    1805   // fixme to do useful check - was missing in base source
     1806  // FIXME to do useful check - was missing in base source
    18061807
    18071808#if 0
Note: See TracChangeset for help on using the changeset viewer.