Changeset 1777 for trunk/dll/init.c
- Timestamp:
- Jun 13, 2014, 3:51:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1753 r1777 803 803 if (p) { 804 804 p++; 805 ul = strtoul(p, NULL, 16);805 ul = strtoul(p, NULL, 16); 806 806 GetDosPgmName(ul, temp); 807 807 if (!strstr(temp, "FM/2") && … … 1199 1199 //Get default Country info 1200 1200 { 1201 COUNTRYCODE Country = {0}; 1202 ULONG ulInfoLen = 0; 1203 COUNTRYINFO CtryInfo = {0}; 1204 1205 if (!DosQueryCtryInfo(sizeof(CtryInfo), &Country, &CtryInfo, &ulInfoLen)) { 1206 *ThousandsSeparator = CtryInfo.szThousandsSeparator[0]; 1207 strcpy(DateSeparator, CtryInfo.szDateSeparator); 1208 strcpy(TimeSeparator, CtryInfo.szTimeSeparator); 1209 ulDateFmt = CtryInfo.fsDateFmt; 1210 ulTimeFmt = CtryInfo.fsTimeFmt; 1211 //DbgMsg(pszSrcFile, __LINE__, "Date Fmt %x", ulDateFmt); 1212 } 1213 else { 1214 strcpy(ThousandsSeparator, ","); 1215 strcpy(DateSeparator, "/"); 1216 strcpy(TimeSeparator, ":"); 1217 ulDateFmt = 0; 1218 ulTimeFmt = 0; 1219 } 1220 } 1221 { // Check for the existance of various partitioning tools to set up menu items 1201 COUNTRYCODE Country = {0}; 1202 ULONG ulInfoLen = 0; 1203 COUNTRYINFO CtryInfo = {0}; 1204 1205 if (!DosQueryCtryInfo(sizeof(CtryInfo), &Country, &CtryInfo, &ulInfoLen)) { 1206 *ThousandsSeparator = CtryInfo.szThousandsSeparator[0]; 1207 strcpy(DateSeparator, CtryInfo.szDateSeparator); 1208 strcpy(TimeSeparator, CtryInfo.szTimeSeparator); 1209 ulDateFmt = CtryInfo.fsDateFmt; 1210 ulTimeFmt = CtryInfo.fsTimeFmt; 1211 //DbgMsg(pszSrcFile, __LINE__, "Date Fmt %x", ulDateFmt); 1212 } 1213 else { 1214 strcpy(ThousandsSeparator, ","); 1215 strcpy(DateSeparator, "/"); 1216 strcpy(TimeSeparator, ":"); 1217 ulDateFmt = 0; 1218 ulTimeFmt = 0; 1219 } 1220 } 1221 { 1222 // Check for the existance of various partitioning tools to set up menu items 1222 1223 ULONG ulAppType; 1223 1224 … … 1416 1417 PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size); 1417 1418 PrfQueryProfileString(fmprof, appname, "TreeEnvVarList", "PATH;DPATH;LIBPATH;HELP;BOOKSHELF;", 1418 1419 pszTreeEnvVarList, MaxComLineStrg); 1419 1420 size = sizeof(BOOL); 1420 1421 PrfQueryProfileData(fmprof, appname, "ShowDriveOnly", &fShowDriveOnly, &size);
Note:
See TracChangeset
for help on using the changeset viewer.