Changeset 1004 for trunk/dll/init.c
- Timestamp:
- Apr 20, 2008, 7:59:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r998 r1004 45 45 08 Mar 08 JBS Ticket 230: Replace prefixless INI keys for default directory containers with 46 46 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. 47 48 48 49 ***********************************************************************/ … … 996 997 size = sizeof(ULONG); 997 998 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 } 998 1016 if (MaxComLineStrg < CMDLNLNGTH_MIN) 999 1017 MaxComLineStrg = CMDLNLNGTH_MIN;
Note:
See TracChangeset
for help on using the changeset viewer.