Changeset 1004 for trunk/dll/init.c


Ignore:
Timestamp:
Apr 20, 2008, 7:59:34 PM (17 years ago)
Author:
Gregg Young
Message:

Change default command line length to 1024; remove additional hard coded command line lengths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r998 r1004  
    4545  08 Mar 08 JBS Ticket 230: Replace prefixless INI keys for default directory containers with
    4646                keys using a "DirCnr." prefix
     47  20 Apr 08 GKY Change default cmd line length to 1024 Ask once if user wants to reset it.
    4748
    4849***********************************************************************/
     
    996997  size = sizeof(ULONG);
    997998  PrfQueryProfileData(fmprof, appname, "MaxComLineStrg", &MaxComLineStrg, &size);
     999  // Give user one chance to reset the default command line length to 1024 (4os2's unexpanded max)
     1000  if (MaxComLineStrg == 2048) {
     1001    BOOL MaxComLineChecked = FALSE;
     1002
     1003    size = sizeof(BOOL);
     1004    PrfQueryProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, &size);
     1005    if (!MaxComLineChecked) {
     1006      ret = saymsg(MB_YESNO,
     1007                   HWND_DESKTOP,
     1008                   NullStr,
     1009                   GetPString(IDS_CHANGECMDLINELENGTHDEFAULT));
     1010      if (ret == MBID_YES)
     1011        MaxComLineStrg = 1024;
     1012      MaxComLineChecked = TRUE;
     1013      PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, sizeof(BOOL));
     1014    }
     1015  }
    9981016  if (MaxComLineStrg < CMDLNLNGTH_MIN)
    9991017    MaxComLineStrg = CMDLNLNGTH_MIN;
Note: See TracChangeset for help on using the changeset viewer.