Changeset 1877 for trunk/dll/filldir.c


Ignore:
Timestamp:
Oct 11, 2015, 11:43:27 PM (10 years ago)
Author:
Gregg Young
Message:

Remove debug code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1873 r1877  
    397397          if (pgeaPrev) {
    398398            pgeaPrev->oNextEntryOffset = (PSZ)pgea - (PSZ)pgeaPrev;
    399             //DbgMsg(pszSrcFile, __LINE__, "pgea %p oNextEntryOffset %u", pgeaPrev, pgeaPrev->oNextEntryOffset);
    400399          }
    401400          strcpy(pgea->szName, pcsz);
    402401          pgea->cbName = strlen(pgea->szName);
    403402          pgea->oNextEntryOffset = 0;
    404           //DbgMsg(pszSrcFile, __LINE__, "pgea %p cbName %u szName %s", pgea, pgea->cbName, pgea->szName);
    405403          offset = sizeof(GEA2) + pgea->cbName; // Calc length including null
    406404          offset = (offset + 3) & ~3;           // Doubleword align
     
    409407        }
    410408      } // for
    411 
    412409      pgealist->cbList = (PSZ)pgea - (PSZ)pgealist;
    413       //DbgMsg(pszSrcFile, __LINE__, "pgealist %p cbList %u", pgealist, pgealist->cbList);
    414 
    415410      pfealist = xmallocz(65536, pszSrcFile, __LINE__);
    416411      if (pfealist) {
     
    429424                    s, pci->pszFileName);
    430425        }
    431           //DbgMsg(pszSrcFile, __LINE__, "DosQueryPathInfo %s failed with rc %u ", pci->pszFileName, rc);
    432426        else {
    433427          PFEA2 pfea = eaop.fpFEA2List->list;
     
    439433                          GetPString(IDS_ERROREATYPETEXT),
    440434                          achValue, pfea->cbName, pfea->szName);
    441                 //DbgMsg(pszSrcFile, __LINE__, "EA type 0x%x unexpected for %.*s", achValue, pfea->cbName, pfea->szName);
    442435              else {
    443436                CHAR ch = achValue[pfea->cbValue];
     
    446439                pszValue = xstrdup(achValue + (sizeof(USHORT) * 2), pszSrcFile, __LINE__);
    447440                achValue[pfea->cbValue] = ch;
    448                 //DbgMsg(pszSrcFile, __LINE__, "pfea %p %.*s cbValue %u %s", pfea, pfea->cbName, pfea->szName, pfea->cbValue, pszValue);
    449441                if (strncmp(pfea->szName, LONGNAME, pfea->cbName) == 0)
    450442                  pci->pszLongName = pszValue;
     
    454446                  Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    455447                            GetPString(IDS_ERROREATYPETEXT), pfea, pfea->cbName, pfea->szName);
    456                   //DbgMsg(pszSrcFile, __LINE__, "pfea %p EA %.*s unexpected", pfea, pfea->cbName, pfea->szName);
    457448              }
    458449            }
     
    772763  else {
    773764    pci->pszFmtFileSize = NullStr;
    774     //DbgMsg(pszSrcFile, __LINE__, "Bypassed Format size %s", pci->pszDisplayName);
    775765  }
    776766  pci->date.day = pfsa4->fdateLastWrite.day;
     
    12051195    while (pci && (INT)pci != -1) {
    12061196      if (!pci->pszFileName || !strcmp(pci->pszFileName, NullStr)) {
    1207         // 2015-08-23 SHL FIXME debug
    1208         //DbgMsg(pszSrcFile, __LINE__, "ProcessDirectory pci %p pci->pszFileName %p %s",
    1209         //       pci, pci->pszFileName,
    1210         //       pci->pszFileName == NullStr ? "NullStr" : "NULL");
    12111197        Runtime_Error(pszSrcFile, __LINE__, "pci->pszFileName NULL for %p", pci);
    12121198        return;
     
    12811267  ULONG startdrive = 3;
    12821268  HWND hwndDrivelist;
    1283 
    12841269  static BOOL didonce;
    12851270  static ULONG ulLastDriveMap;
    1286 
    1287   //DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr hwndCnr %x hwndParent %x", hwndCnr, hwndParent);   // 2015-08-03 SHL FIXME debug
    12881271
    12891272  *szSuggest = 0;
     
    17081691      }
    17091692    }
    1710     // DbgMsg(pszSrcFile, __LINE__, "szSuggest %x info %x", *szSuggest, info);
    17111693    if (*szSuggest) {
    17121694      APIRET rc;
     
    17681750  } // if !fDontSuggestAgain
    17691751  didonce = TRUE;
    1770 
    1771   //DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr finished");        // 2015-08-03 SHL FIXME debug
    1772 
    17731752} // FillTreeCnr
    17741753
     
    19261905VOID FreeCnrItem(HWND hwnd, PCNRITEM pci)
    19271906{
    1928   // DbgMsg(pszSrcFile, __LINE__, "FreeCnrItem hwnd %x pci %p", hwnd, pci);
    1929 
    19301907  FreeCnrItemData(pci);
    19311908
     
    20242001        if (remaining && --remaining == 0)
    20252002          break;
    2026         if (!bIdlePrioritySet /* && --usTimerCheckCountdown == 0 */) {
     2003        if (!bIdlePrioritySet) {
    20272004          bIdlePrioritySet = !IdleIfNeeded(&itdSleep, 30);
    2028           // usTimerCheckCountdown = RCI_ITEMS_PER_TIMER_CHECK;
    20292005        }
    20302006      } // while
     
    20352011    }
    20362012  }
    2037 
    2038   // DbgMsg(pszSrcFile, __LINE__, "RemoveCnrItems %p %u %s", pci, usCnt, pci->pszFileName);
    2039 
    20402013  if (remaining != - 1) {
    20412014    remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&pciFirst), MPFROM2SHORT(usCnt, usFlags));
Note: See TracChangeset for help on using the changeset viewer.