Changeset 1754


Ignore:
Timestamp:
Mar 2, 2014, 10:05:02 PM (12 years ago)
Author:
Gregg Young
Message:

!didone for fFirstTime so the suggest code works again. Also clear out the garbage that was appearing in the string. Ticket 527.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1690 r1754  
    9999  12 Jun 11 GKY Replaced SleepIfNeeded with IdleIfNeeded in the container loade loop
    100100  22 Oct 11 GKY Removing unneeded UnFlesh call from StubbyScanThread appears to significantly speed opening of FM/2
     101  02 Mar 14 GKY !didone for fFirstTime so the suggest code works again. Also clear out the
     102                garbage that was appearing in the string.
    101103
    102104***********************************************************************/
     
    149151// Data definitions
    150152static PSZ pszSrcFile = __FILE__;
    151 static BOOL fFirstTime;
    152153INT FixedVolume = 0;
    153154
     
    12791280  UINT iDrvNum;
    12801281  ULONG ulDriveMapMask;
    1281   CHAR szSuggest[32];                   // Suggested startup command line parameters
     1282  CHAR szSuggest[32] = {0};                     // Suggested startup command line parameters
    12821283  CHAR szDrive[CCHMAXPATH] = " :\\";    // 13 Oct 09 SHL
    12831284  CHAR szFSType[CCHMAXPATH];
     
    17141715    BOOL includesyours = FALSE;
    17151716
    1716     // 10 Jan 08 SHL fixme to understand fFirstTime - looks obsolete to me - probably mean didonce?
    1717     if (*szSuggest || ~driveflags[1] & DRIVE_IGNORE && fFirstTime) {
     1717    // 02 Mar 14 GKY !didone for fFirstTime so it works again
     1718   if (*szSuggest || ~driveflags[1] & DRIVE_IGNORE && !didonce) {
    17181719      if (!DosDevConfig(&info, DEVINFO_FLOPPY) && info == 1) {
    17191720        if (!*szSuggest) {
     
    17261727      }
    17271728    }
     1729    //DbgMsg(pszSrcFile, __LINE__, "szSuggest %x info %x", *szSuggest, info);
    17281730    if (*szSuggest) {
    17291731      APIRET rc;
     
    17361738      strcat(szSuggest, " %*");
    17371739      rc = saymsg(MB_YESNOCANCEL | MB_ICONEXCLAMATION,
    1738              hwndParent ? hwndParent : hwndCnr,
    1739              GetPString(IDS_SUGGESTTITLETEXT),
    1740              GetPString(IDS_SUGGEST1TEXT),
    1741              (includesyours) ? GetPString(IDS_SUGGEST2TEXT) : NullStr,
    1742              szSuggest);
     1740                  hwndParent ? hwndParent : hwndCnr,
     1741                  GetPString(IDS_SUGGESTTITLETEXT),
     1742                  GetPString(IDS_SUGGEST1TEXT),
     1743                  (includesyours) ? GetPString(IDS_SUGGEST2TEXT) : NullStr,
     1744                  szSuggest);
    17431745      if (rc == MBID_YES) {
    17441746        HOBJECT hFM2Object;
Note: See TracChangeset for help on using the changeset viewer.