Changeset 1864


Ignore:
Timestamp:
Aug 23, 2015, 7:11:40 PM (10 years ago)
Author:
Gregg Young
Message:

Fixed code to notify on drive with no subdirectories in first 64 entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/flesh.c

    r1863 r1864  
    3636  07 Aug 15 SHL Rework to use AddFleshWorkRequest rather than direct calls to Stubby/Flesh/Unflesh
    3737  19 Aug 15 SHL Allow WaitFleshWorkListEmpty to wait for dependent items
     38  23 Aug 15 GKY Fixed code to notify on drive with no subdirectories in first 64 entries
    3839
    3940***********************************************************************/
     
    494495    goto None;                          // Done
    495496  }
     497
    496498
    497499  if (!rc) {
     
    601603        }
    602604      } // if isadir
    603       else if (toupper(*wildcard) > 'B' && wildcard[1] == ':' && wildcard[2] == '\\' &&
    604                !wildcard[3]) {
    605 
    606         // 2015-08-19 SHL FIXME to know how this can happen since wildcard ends with *
    607         // Is root and no subdirectories
    608         CHAR s[162];
    609         DbgMsg(pszSrcFile, __LINE__, "Stubby !isadir for %s", wildcard); // 2015-08-19 SHL FIXME debug
    610         sprintf(s,
    611                 GetPString(IDS_NOSUBDIRS2TEXT),
    612                 nm,
    613                 toupper(*pciParent->pszFileName),
    614                 isremote ? GetPString(IDS_NOSUBDIRS3TEXT) : NullStr);
    615         Notify(s);
    616       }
    617     }
     605    }
     606  } // if !rc
     607  else if (toupper(*wildcard) > 'B' && wildcard[1] == ':' && wildcard[2] == '\\' &&
     608           wildcard[3] == '*' && !wildcard[4]) {
     609    // Is root and no subdirectories
     610    CHAR s[162];
     611   
     612    sprintf(s,
     613            GetPString(IDS_NOSUBDIRS2TEXT),
     614            nm,
     615            toupper(*pciParent->pszFileName),
     616            isremote ? GetPString(IDS_NOSUBDIRS3TEXT) : NullStr);
     617    Notify(s);
    618618  }
    619619  else if (toupper(*wildcard) > 'B' && rc != ERROR_NO_MORE_FILES) {
     
    784784  }
    785785  c = strlen(((PFLESHWORKITEM)item)->pci->pszFileName);
    786     return strncmp(((PFLESHWORKITEM)item)->pci->pszFileName, (PCSZ)data, c) == 0;
     786    return FALSE; //strncmp(((PFLESHWORKITEM)item)->pci->pszFileName, (PCSZ)data, c) == 0;
    787787}
    788788
Note: See TracChangeset for help on using the changeset viewer.