Changeset 1370 for trunk/dll/init.c


Ignore:
Timestamp:
Jan 3, 2009, 9:42:33 PM (17 years ago)
Author:
Gregg Young
Message:

This should completely fix the drives not getting scanned issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1369 r1370  
    14711471  size = sizeof(BOOL);
    14721472  PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size);
    1473   if (fSaveState) {
     1473  if (fSaveState && (fSwitchTreeOnFocus || fSwitchTree)) {
    14741474    ULONG numsaves = 0;
    14751475    CHAR szKey[STATE_NAME_MAX_BYTES + 80];
    14761476    CHAR szDir[CCHMAXPATH];
    14771477    ULONG drvNum;
    1478     INT x;
    14791478
    14801479    sprintf(szKey, "%s.NumDirsLastTime", GetPString(IDS_SHUTDOWNSTATE));
     
    14821481    if (PrfQueryProfileData(fmprof,
    14831482                            FM3Str, szKey, (PVOID) &numsaves, &size)) {
    1484       for (x = numsaves - 1; x >= 0; x--) {
    1485         sprintf(szKey, "%s.DirCnrDir.%lu", GetPString(IDS_SHUTDOWNSTATE), x);
    1486         size = sizeof(szDir);
    1487         if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) szDir, &size) &&
    1488             (fSwitchTreeOnFocus || fSwitchTree)) {
    1489           drvNum = toupper(*szDir) - 'A';
    1490           fDrivetoSkip[drvNum] = TRUE;
    1491         }
     1483      sprintf(szKey, "%s.DirCnrDir.0", GetPString(IDS_SHUTDOWNSTATE));
     1484      size = sizeof(szDir);
     1485      if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) szDir, &size)) {
     1486        drvNum = toupper(*szDir) - 'A';
     1487        fDrivetoSkip[drvNum] = TRUE;
    14921488      }
    14931489    }
Note: See TracChangeset for help on using the changeset viewer.