Changeset 552 for trunk/dll/treecnr.c
- Timestamp:
- Mar 1, 2007, 7:24:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r551 r552 6 6 7 7 Copyright (c) 1993-98 M. Kimes 8 Copyright (c) 2001, 200 6Steven H. Levine8 Copyright (c) 2001, 2007 Steven H. Levine 9 9 10 10 16 Oct 02 SHL Handle large partitions … … 22 22 29 Dec 06 GKY Fixed menu gray out for remote drives (added variable "remote") 23 23 29 Dec 06 GKY Enabled edit of drive flags on "not ready" drives 24 18 Feb 07 GKY More drive type and inco support 24 25 25 26 ***********************************************************************/ … … 1773 1774 DRIVE_NOLOADICONS | DRIVE_NOLOADSUBJS | 1774 1775 DRIVE_NOLOADLONGS | DRIVE_INCLUDEFILES | 1775 DRIVE_SLOW) ;1776 DRIVE_SLOW) | DRIVE_NOSTATS; 1776 1777 1777 1778 if (removable == 1) … … 1779 1780 if (drvtype & DRIVE_REMOTE) 1780 1781 driveflags[x] |= DRIVE_REMOTE; 1781 if (!strcmp(FileSystem, CDFS)) 1782 if (!strcmp(FileSystem, CBSIFS)) { 1783 driveflags[x] |= DRIVE_ZIPSTREAM; 1784 driveflags[x] &= (~DRIVE_REMOTE); 1785 if(!strcmp(FileSystem,NDFS32)) { 1786 driveflags[x] |= DRIVE_VIRTUAL; 1787 driveflags[x] &= (~DRIVE_REMOTE); 1788 } 1789 if(!strcmp(FileSystem,RAMFS)) { 1790 driveflags[x] |= DRIVE_RAMDISK; 1791 driveflags[x] &= (~DRIVE_REMOTE); 1792 } 1793 if (!strcmp(FileSystem, CDFS) || !strcmp(FileSystem, ISOFS)) 1782 1794 driveflags[x] |= (DRIVE_REMOVABLE | 1783 1795 DRIVE_NOTWRITEABLE | DRIVE_CDROM); … … 1785 1797 strcmp(FileSystem, JFS) && 1786 1798 strcmp(FileSystem, CDFS) && 1799 strcmp(FileSystem, ISOFS) && 1800 strcmp(FileSystem, RAMFS) && 1787 1801 strcmp(FileSystem, FAT32) && 1788 strcmp(FileSystem, NDFS32) && strcmp(FileSystem, HPFS386)) { 1802 strcmp(FileSystem, NDFS32) && 1803 strcmp(FileSystem, HPFS386)) { 1789 1804 driveflags[x] |= DRIVE_NOLONGNAMES; 1790 1805 } 1791 if (!strcmp(FileSystem, CBSIFS)) { 1792 driveflags[x] |= DRIVE_ZIPSTREAM; 1793 driveflags[x] &= (~DRIVE_REMOTE); 1806 1794 1807 } 1795 1808 if (driveflags[x] & DRIVE_CDROM) … … 1799 1812 pciP->rc.hptrIcon = (driveflags[x] & DRIVE_REMOVABLE) ? 1800 1813 hptrRemovable : 1801 (driveflags[x] & DRIVE_REMOTE) ? hptrRemote : hptrDrive; 1814 (driveflags[x] & DRIVE_REMOTE) ? 1815 hptrRemote : 1816 (driveflags[x] & DRIVE_VIRTUAL) ? 1817 hptrVirtual : 1818 (driveflags[x] & DRIVE_RAMDISK) ? 1819 hptrRamdisk : 1820 (driveflags[x] & DRIVE_ZIPSTREAM) ? 1821 hptrZipstrm : hptrDrive; 1802 1822 WinSendMsg(hwnd, 1803 1823 CM_INVALIDATERECORD, … … 2008 2028 writeable = rdy 2009 2029 && !(driveflags[chDrvU - 'A'] & DRIVE_NOTWRITEABLE); 2010 remote = rdy && (driveflags[chDrvU - 'A'] & DRIVE_REMOTE) != 0;2030 remote = rdy && (driveflags[chDrvU - 'A'] & (DRIVE_REMOTE || DRIVE_VIRTUAL)) != 0; 2011 2031 underenv = (pci->flags & RECFLAGS_UNDERENV) != 0; 2012 2032 … … 2539 2559 driveflags[toupper(*pci->szFileName) - 'A'] &= 2540 2560 (DRIVE_IGNORE | DRIVE_NOPRESCAN | DRIVE_NOLOADICONS | 2541 DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS );2561 DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS | DRIVE_NOSTATS); 2542 2562 DriveFlagsOne(toupper(*pci->szFileName) - 'A'); 2543 2563 if (driveflags[toupper(*pci->szFileName) - 'A'] & … … 2555 2575 DRIVE_REMOTE) ? hptrRemote 2556 2576 : (driveflags[toupper(*pci->szFileName) - 'A'] & 2577 DRIVE_VIRTUAL) ? hptrVirtual 2578 : (driveflags[toupper(*pci->szFileName) - 'A'] & 2579 DRIVE_RAMDISK) ? hptrRamdisk 2580 : (driveflags[toupper(*pci->szFileName) - 'A'] & 2557 2581 DRIVE_ZIPSTREAM) ? hptrZipstrm : hptrDrive; 2558 2582 }
Note:
See TracChangeset
for help on using the changeset viewer.