Changeset 1912


Ignore:
Timestamp:
Jun 12, 2024, 8:24:31 PM (14 months ago)
Author:
Gregg Young
Message:

One more attempt to fix the tree container corruption on scan/rescan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1896 r1912  
    374374
    375375      if (~pciP->rc.flRecordAttr & CRA_EXPANDED) {
     376        WaitFleshWorkListEmpty(szDirArg, 240);
    376377        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciP), MPVOID);
     378        WaitFleshWorkListEmpty(szDirArg, 240);
    377379      }
    378380
     
    427429        if (~pciP->rc.flRecordAttr & CRA_EXPANDED)
    428430          WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciP), MPVOID);
    429         pciToSelect = pciP;
    430         DosSleep(0);                    // Let GUI update
     431        pciToSelect = pciP;
     432          WaitFleshWorkListEmpty(NULL, 240);  // Let GUI update
    431433      } // for
    432434    } // if not cursored
Note: See TracChangeset for help on using the changeset viewer.