Changeset 1662


Ignore:
Timestamp:
Aug 4, 2012, 11:10:30 PM (13 years ago)
Author:
Gregg Young
Message:

Fix trap on close during drive scan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/flesh.c

    r1655 r1662  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2005, 2010 Steven H. Levine
     9  Copyright (c) 2005-2012 Steven H. Levine
    1010
    1111  24 May 05 SHL Rework Win_Error usage
     
    3030                aren't user settable; realappname should be used for setting applicable to
    3131                one or more miniapp but not to FM/2
    32   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     32  17 Jan 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     33  04 Aug 12 GKY Fix trap on close during drive scan
    3334
    3435***********************************************************************/
     
    198199    if (dcd && dcd->size != sizeof(DIRCNRDATA))
    199200      dcd = NULL;
    200     if (driveflags[toupper(*pciParent->pszFileName) - 'A'] &
    201         DRIVE_INCLUDEFILES)
     201    if (driveflags[toupper(*pciParent->pszFileName) - 'A'] & DRIVE_INCLUDEFILES)
    202202      includefiles = TRUE;
    203       ProcessDirectory(hwndCnr,
    204                        pciParent,
    205                        pciParent->pszFileName,
    206                        includefiles,    // filestoo
    207                        TRUE,            // recurse
    208                        TRUE,            // partial
    209                        NULL,            // stop flag
    210                        dcd,
    211                        NULL,            // total files
    212                        NULL);           // total bytes
    213     driveflags[*pciParent->pszFileName - 'A'] |= DRIVE_RSCANNED;
     203    ProcessDirectory(hwndCnr,
     204                     pciParent,
     205                     pciParent->pszFileName,
     206                     includefiles,      // filestoo
     207                     TRUE,              // recurse
     208                     TRUE,              // partial
     209                     NULL,              // stop flag
     210                     dcd,
     211                     NULL,              // total files
     212                     NULL);             // total bytes
     213    if (pciParent && pciParent->pszFileName && !(driveflags[toupper(*pciParent->pszFileName) - 'A'] & DRIVE_RSCANNED))
     214      driveflags[toupper(*pciParent->pszFileName) - 'A'] |= DRIVE_RSCANNED;
    214215    return TRUE;
    215216  }
Note: See TracChangeset for help on using the changeset viewer.