Changeset 1354 for trunk/dll/misc.c


Ignore:
Timestamp:
Dec 25, 2008, 11:43:34 PM (17 years ago)
Author:
Gregg Young
Message:

Added driveflags to over ride write verify for USB removable drives that fail when it is on (Ticket 323); A flag to prevent directory name from being broadcast to drives in the tree cnr prior to a recursive scan of the drive (causes dbl directory names Ticket 321) Add option for multithreaded recursive scan of user selected drives at startup (Ticket 322).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1253 r1354  
    9696#include "commafmt.h"                   // CommaFmtULL
    9797#include "fortify.h"
     98#include "info.h"                       // driveflags
    9899
    99100#define CONTAINER_COLUMNS       13      /* Number of columns in details view */
     
    798799      CHAR szData[CCHMAXPATH], testname[CCHMAXPATH];
    799800      HWND hwndMLE = WinWindowFromID(hwnd, CID_MLE);
     801      BOOL fResetVerify = FALSE;
    800802
    801803      if (pci && (INT) pci != -1 && !IsRoot(pci->pszFileName)) {
     
    925927                return (MRESULT) FALSE;
    926928              }
     929              if (fVerify && (driveflags[toupper(*szData) - 'A'] & DRIVE_WRITEVERIFYOFF ||
     930                              driveflags[toupper(*testname) - 'A'] & DRIVE_WRITEVERIFYOFF)) {
     931                DosSetVerify(FALSE);
     932                fResetVerify = TRUE;
     933              }
    927934              if (docopyf(MOVE, szData, "%s", testname))
    928935                Runtime_Error(pszSrcFile, __LINE__, "docopyf");
     
    945952                  }
    946953                }
     954              }
     955              if (fResetVerify) {
     956                DosSetVerify(fVerify);
     957                fResetVerify = FALSE;
    947958              }
    948959            }
Note: See TracChangeset for help on using the changeset viewer.