Changeset 282
- Timestamp:
- Dec 8, 2005, 8:45:06 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/dll/filldir.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/filldir.c
r246 r282 9 9 Copyright (c) 2001, 2005 Steven H. Levine 10 10 11 12 Sep 02 SHL Rework symbols to understand code12 08 Feb 03 SHL DropHelp: calc EA size consistently13 11 Jun 03 SHL Add JFS and FAT32 support14 11 10 Jan 04 SHL ProcessDirectory: avoid most large drive failures 15 12 24 May 05 SHL Rework Win_Error usage … … 23 20 09 Jun 05 SHL Rework IDFile 24 21 13 Aug 05 SHL Renames 22 24 Oct 05 SHL FillInRecordFromFFB: correct longname display enable 23 24 Oct 05 SHL FillInRecordFromFSA: correct longname display enable 24 24 Oct 05 SHL Drop obsolete code 25 25 26 26 ***********************************************************************/ … … 95 95 if (!hptrPMFile) 96 96 { 97 # if 0 // fixme to be gone98 for (l = 1; l <= SPTR_CPTR; l++)99 {100 hptr3 = WinQuerySysPointer(HWND_DESKTOP,l,FALSE);101 fprintf(stderr, "0x%08lx SPTR %ld\n", hptr3, l);102 }103 # endif // fixme to be gone104 97 hptrPMFile = WinQuerySysPointer(HWND_DESKTOP,SPTR_FILE,FALSE); 105 98 } 106 # if 0 // fixme to be gone107 else108 {109 hptr2 = WinQuerySysPointer(HWND_DESKTOP,SPTR_FILE,FALSE);110 if (hptr2 != hptrPMFile)111 {112 saymsg(0, NULLHANDLE, "*Debug*", "ptr changed from %lx to %lx", hptrPMFile, hptr2);113 hptrPMFile = hptr2;114 fprintf(stderr, "0x%08lx SPTR_FILE changed\n", hptrPMFile);115 }116 }117 # endif // fixme to be gone118 99 119 100 // try to guess WPS default file icon … … 148 129 fclose(fp); 149 130 hptr3 = WinLoadFileIcon(szFileName, FALSE); 150 # if 0 // fixme to be gone151 fprintf(stderr, "0x%08lx %s\n", hptr3, szFileName);152 # endif // fixme to be gone153 131 unlinkf("%s", szFileName); 154 132 if (!hptr2) … … 249 227 /* load the object's longname */ 250 228 *pci->szLongname = 0; 251 if (pffb->cbList > 4L && 252 dcd && fLoadLongnames && 253 (isalpha(*pci->szFileName) && 254 (driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLONGNAMES) && 255 !(driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLOADLONGS))) 229 if (fLoadLongnames && 230 dcd && 231 pffb->cbList > 4L && 232 isalpha(*pci->szFileName) && 233 ~driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLONGNAMES && 234 ~driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLOADLONGS) 256 235 { 257 236 APIRET rc; … … 499 478 pci->pszSubject = pci->szSubject; 500 479 *pci->szLongname = 0; 501 if ( pfsa4->cbList > 4L&&480 if (fLoadLongnames && 502 481 dcd && 503 fLoadLongnames&&504 (!isalpha(*pci->szFileName) ||505 ((driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLONGNAMES)&&506 !(driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLOADLONGS))))482 pfsa4->cbList > 4L && 483 isalpha(*pci->szFileName) && 484 ~driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLONGNAMES && 485 ~driveflags[toupper(*pci->szFileName) - 'A'] & DRIVE_NOLOADLONGS) 507 486 { 508 487 APIRET rc; … … 704 683 if (isalpha(*szDirBase) && szDirBase[1] == ':' && szDirBase[2] == '\\') 705 684 { 706 // if (!(driveflags[toupper(*szDirBase) - 'A'] & DRIVE_NOLONGNAMES)) 707 ulExtraBytes = EXTRA_RECORD_BYTES; 708 // else 709 // ulExtraBytes = EXTRA_RECORD_BYTES2; 685 ulExtraBytes = EXTRA_RECORD_BYTES; 710 686 if ((driveflags[toupper(*szDirBase) - 'A'] & DRIVE_REMOTE) && fRemoteBug) 711 687 ulM = 1; /* file system gets confused */
Note:
See TracChangeset
for help on using the changeset viewer.
