Changeset 555 for trunk/dll/valid.c


Ignore:
Timestamp:
Mar 4, 2007, 6:01:14 AM (18 years ago)
Author:
Gregg Young
Message:

Added NTFS support (read only); minor dive icon code cleanup; update help files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/valid.c

    r552 r555  
    244244
    245245  if (pulType && (!strcmp(pfsn, CDFS) || !strcmp(pfsn, ISOFS)))
    246     *pulType |= DRIVE_NOTWRITEABLE | DRIVE_CDROM | DRIVE_REMOVABLE;
     246      *pulType |= DRIVE_NOTWRITEABLE | DRIVE_CDROM | DRIVE_REMOVABLE;
     247  if (pulType && !strcmp(pfsn, NTFS))
     248      *pulType |= DRIVE_NOTWRITEABLE;
    247249  if (pulType && !strcmp(pfsn, NDFS32)){
    248250        *pulType |= DRIVE_VIRTUAL;
     
    252254    }
    253255  if (((PFSQBUFFER2) pvBuffer)->iType == FSAT_REMOTEDRV &&
    254       (strcmp(pfsn, CDFS) && strcmp(pfsn, ISOFS))) {
     256      (strcmp(pfsn, CDFS) || strcmp(pfsn, ISOFS))) {
    255257    if (pulType)
    256258      *pulType |= DRIVE_REMOTE;
     
    278280         !strcmp(pfsn, RAMFS) ||
    279281         !strcmp(pfsn, NDFS32) ||
     282         !strcmp(pfsn, NTFS) ||
    280283         !strcmp(pfsn, HPFS386))) {
    281284      *pulType &= ~DRIVE_NOLONGNAMES;
     
    294297      strcmp(pfsn, FAT32) &&
    295298      strcmp(pfsn, NDFS32) &&
     299      strcmp(pfsn, NTFS) &&
    296300      strcmp(pfsn, HPFS386)) {
    297301    if (pulType)
     
    642646    driveflags[x] &= (~DRIVE_REMOTE);
    643647  }
     648  if(!stricmp(FileSystem,NTFS))
     649    driveflags[x] |= DRIVE_NOTWRITEABLE;
    644650  if (strcmp(FileSystem, HPFS) &&
    645651      strcmp(FileSystem, JFS) &&
     
    648654      strcmp(FileSystem, RAMFS) &&
    649655      strcmp(FileSystem, FAT32) &&
     656      strcmp(FileSystem, NTFS) &&
     657      strcmp(FileSystem, NDFS32) &&
    650658      strcmp(FileSystem, HPFS386)) {
    651659    driveflags[x] |= DRIVE_NOLONGNAMES;
Note: See TracChangeset for help on using the changeset viewer.