Changeset 282


Ignore:
Timestamp:
Dec 8, 2005, 8:45:06 AM (20 years ago)
Author:
root
Message:

FillInRecordFromFFB: correct longname display enable
FillInRecordFromFSA: correct longname display enable
Drop obsolete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r246 r282  
    99  Copyright (c) 2001, 2005 Steven H. Levine
    1010
    11   12 Sep 02 SHL Rework symbols to understand code
    12   08 Feb 03 SHL DropHelp: calc EA size consistently
    13   11 Jun 03 SHL Add JFS and FAT32 support
    1411  10 Jan 04 SHL ProcessDirectory: avoid most large drive failures
    1512  24 May 05 SHL Rework Win_Error usage
     
    2320  09 Jun 05 SHL Rework IDFile
    2421  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
    2525
    2626***********************************************************************/
     
    9595  if (!hptrPMFile)
    9696  {
    97 #   if 0 // fixme to be gone
    98     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 gone
    10497    hptrPMFile = WinQuerySysPointer(HWND_DESKTOP,SPTR_FILE,FALSE);
    10598  }
    106 # if 0 // fixme to be gone
    107   else
    108   {
    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 gone
    11899
    119100  // try to guess WPS default file icon
     
    148129        fclose(fp);
    149130        hptr3 = WinLoadFileIcon(szFileName, FALSE);
    150 #       if 0  // fixme to be gone
    151         fprintf(stderr, "0x%08lx %s\n", hptr3, szFileName);
    152 #       endif // fixme to be gone
    153131        unlinkf("%s", szFileName);
    154132        if (!hptr2)
     
    249227  /* load the object's longname */
    250228  *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)
    256235  {
    257236    APIRET    rc;
     
    499478  pci->pszSubject = pci->szSubject;
    500479  *pci->szLongname = 0;
    501   if (pfsa4->cbList > 4L &&
     480  if (fLoadLongnames &&
    502481      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)
    507486  {
    508487    APIRET    rc;
     
    704683  if (isalpha(*szDirBase) && szDirBase[1] == ':' && szDirBase[2] == '\\')
    705684  {
    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;
    710686    if ((driveflags[toupper(*szDirBase) - 'A'] & DRIVE_REMOTE) && fRemoteBug)
    711687      ulM = 1;          /* file system gets confused */
Note: See TracChangeset for help on using the changeset viewer.