Changeset 1251 for trunk/dll/treecnr.c
- Timestamp:
- Oct 19, 2008, 6:34:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r1227 r1251 47 47 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory 48 48 02 Aug 08 GKY Always pass temp variable point to UM_SHOWME to avoid freeing pci->pszFileName early 49 19 Oct 08 GKY Fixed logic for greying menu items (Format etc) on remote and virtual drives (it was reversed) 50 19 Oct 08 GKY Fixed context menu to be "drives" menu on unformatted drives 49 51 50 52 ***********************************************************************/ … … 58 60 #define INCL_WIN 59 61 #define INCL_LONGLONG 62 #define INCL_DOSERRORS 60 63 61 64 #include "fm3dll.h" … … 1108 1111 PCNRITEM pci; 1109 1112 HWND menuHwnd = (HWND) 0; 1113 FSALLOCATE fsa; 1110 1114 1111 1115 pci = (PCNRITEM) CurrentRecord(hwnd); 1112 1116 if (pci && (INT) pci != -1) { 1113 if (IsRoot(pci->pszFileName)) 1117 if (IsRoot(pci->pszFileName) || !DosQueryFSInfo(toupper(*pci->pszFileName) - '@', 1118 FSIL_ALLOC, &fsa, 1119 sizeof(FSALLOCATE))) 1114 1120 menuHwnd = CheckMenu(hwndMainMenu, &TreeMenu, TREE_POPUP); 1115 1121 else { … … 2150 2156 writeable = rdy 2151 2157 && !(driveflags[chDrvU - 'A'] & DRIVE_NOTWRITEABLE); 2152 remote = rdy && (driveflags[chDrvU - 'A'] & (DRIVE_REMOTE || DRIVE_VIRTUAL)) != 0;2158 remote = rdy && (driveflags[chDrvU - 'A'] & (DRIVE_REMOTE || DRIVE_VIRTUAL)) == 0; 2153 2159 underenv = (pci->flags & RECFLAGS_UNDERENV) != 0; 2154 2160
Note:
See TracChangeset
for help on using the changeset viewer.