Changeset 762 for trunk/dll/select.c


Ignore:
Timestamp:
Aug 5, 2007, 1:19:21 AM (18 years ago)
Author:
Steven Levine
Message:

Use two pass logic to free CNRITEMs and ARCITEMs
Rename pszLongname to pszLongName
More compare directories rework
Make directory sizes item draw placement deterministic - how did it ever work?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/select.c

    r751 r762  
    2121  14 Jun 07 SHL SelectAll: make odd expression go away
    2222  02 Aug 07 SHL Sync with CNRITEM mods
     23  04 Aug 07 SHL Use Runtime_Error
    2324
    2425***********************************************************************/
     
    574575#pragma alloc_text(SELECT4,FreeCnrs,SpecialSelect2,CompSSNames,CompSSNamesB)
    575576
     577/**
     578 * Do select actions for compare directories containers
     579 *
     580 */
     581
    576582VOID SpecialSelect(HWND hwndCnrS, HWND hwndCnrD, INT action, BOOL reset)
    577583{
     
    582588
    583589
    584   if (!hwndCnrS || !hwndCnrD)
     590  if (!hwndCnrS || !hwndCnrD) {
     591    Runtime_Error(pszSrcFile, __LINE__, "hwndCnrS %p hwndCnrD %p", hwndCnrS, hwndCnrD);
    585592    return;
     593  }
    586594
    587595  memset(&cnri, 0, sizeof(CNRINFO));
     
    596604  numS = (INT) cnri.cRecords;
    597605  if (!numD || numS != numD) {
    598     saymsg(MB_ENTER,
    599            HWND_DESKTOP,
    600            DEBUG_STRING, "numD (%lu) != numS (%lu)", numD, numS);
     606    Runtime_Error(pszSrcFile, __LINE__, "numD %u != numS %u", numD, numS);
    601607    return;
    602608  }
     
    630636                                   MPFROM2SHORT(CMA_NEXT, CMA_ITEMORDER));
    631637    if (!(x % 500))
    632       DosSleep(1L);
     638      DosSleep(1);
    633639    else if (!(x % 50))
    634640      DosSleep(1);
    635   }
     641  } // while
     642
    636643  if (numD != x) {
    637644    if (!slow) {
     
    641648    free(pciDa);
    642649    free(pciSa);
    643     saymsg(MB_ENTER,
    644            HWND_DESKTOP, DEBUG_STRING, "numD (%lu) != x (%lu)", numD, x);
     650    Runtime_Error(pszSrcFile, __LINE__, "numD %u != x %lu", numD, x);
    645651    return;
    646652  }
     
    660666                                   MPFROM2SHORT(CMA_NEXT, CMA_ITEMORDER));
    661667    if (!(x % 500))
    662       DosSleep(1L);
     668      DosSleep(1);
    663669    else if (!(x % 50))
    664670      DosSleep(1);
    665   }
     671  } // while
     672
    666673  if (numS != x) {
    667674    if (!slow) {
     
    725732      }
    726733      if (!(x % 500))
    727         DosSleep(1L);
     734        DosSleep(1);
    728735      else if (!(x % 50))
    729736        DosSleep(1);
     
    11861193  DosPostEventSem(CompactSem);
    11871194}
     1195
     1196/**
     1197 * Do select actions for single container
     1198 *
     1199 */
    11881200
    11891201VOID SpecialSelect2(HWND hwndParent, INT action)
Note: See TracChangeset for help on using the changeset viewer.