Changeset 917 for trunk/dll/init.c
- Timestamp:
- Jan 11, 2008, 10:41:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r907 r917 645 645 return FALSE; 646 646 } 647 647 648 /* timer messages are sent from a separate thread -- start it */ 648 649 if (!StartTimer()) { … … 662 663 /* figure out where to put INI file... */ 663 664 CHAR inipath[CCHMAXPATH]; 664 // PSZ env;665 665 666 666 DosError(FERR_DISABLEHARDERR); … … 692 692 DosError(FERR_DISABLEHARDERR); 693 693 694 if (!DosQueryPathInfo(inipath, FIL_STANDARD, &fs3, sizeof(fs3))) { 694 rc = DosQueryPathInfo(inipath, FIL_STANDARD, &fs3, sizeof(fs3)); 695 if (rc) { 696 if (rc == ERROR_FILE_NOT_FOUND) 697 fWantFirstTimeInit = TRUE; 698 } 699 else { 695 700 fIniExisted = TRUE; 696 701 if (fs3.attrFile & (FILE_READONLY | FILE_HIDDEN | FILE_SYSTEM)) { … … 711 716 } 712 717 718 // 10 Jan 08 SHL fixme to do first time if new ini 719 // 10 Jan 08 SHL post UM_FIRSTTIME to main window 713 720 if (!fmprof) { 714 721 Win_Error(NULLHANDLE, NULLHANDLE, pszSrcFile, __LINE__, … … 929 936 fSaveMiniCmds = fUserComboBox = fFM2Deletes = fConfirmTarget = 930 937 fShowTarget = fDrivebarHelp = fCheckMM = TRUE; 931 #if 0 // 06 Oct 07 SHL fixme to be gone after wrapper testing finished932 fNoLargeFileSupport = TRUE;933 #endif934 938 ulCnrType = CCS_EXTENDSEL; 935 939 FilesToGet = FILESTOGET_MIN; … … 953 957 954 958 DosQueryCtryInfo(sizeof(CtryInfo), &Country, 955 959 &CtryInfo, &ulInfoLen); 956 960 *ThousandsSeparator = CtryInfo.szThousandsSeparator[0]; 957 961 } … … 1167 1171 size = sizeof(extractpath); 1168 1172 PrfQueryProfileData(fmprof, appname, "ExtractPath", extractpath, &size); 1169 //if (!IsValidDir(extractpath))1170 // *extractpath = 0;1171 1173 size = sizeof(printer); 1172 1174 PrfQueryProfileData(fmprof, appname, "Printer", printer, &size); … … 1190 1192 size = sizeof(ftprun); 1191 1193 PrfQueryProfileData(fmprof, appname, "FTPRun", ftprun, &size); 1192 if (!*ftprun) {1194 if (!*ftprun) 1193 1195 fFtpRunWPSDefault = TRUE; 1194 }1195 1196 size = sizeof(BOOL); 1196 1197 PrfQueryProfileData(fmprof, appname, "HttpRunWPSDefault", &fHttpRunWPSDefault, &size); 1197 1198 size = sizeof(httprun); 1198 1199 PrfQueryProfileData(fmprof, appname, "HTTPRun", httprun, &size); 1199 if (!*httprun) {1200 if (!*httprun) 1200 1201 fHttpRunWPSDefault = TRUE; 1201 }1202 1202 size = sizeof(mailrun); 1203 1203 PrfQueryProfileData(fmprof, appname, "MailRun", mailrun, &size); … … 1210 1210 size = sizeof(lasttoolbox); 1211 1211 PrfQueryProfileData(fmprof, FM3Str, "LastToolBox", lasttoolbox, 1212 1212 &size); 1213 1213 size = sizeof(BOOL); 1214 1214 PrfQueryProfileData(fmprof, appname, "LibPathStrictHttpRun", &fLibPathStrictHttpRun, 1215 1215 &size); 1216 1216 size = sizeof(BOOL); 1217 1217 PrfQueryProfileData(fmprof, appname, "LibPathStrictFtpRun", &fLibPathStrictFtpRun, 1218 1218 &size); 1219 1219 size = sizeof(BOOL); 1220 1220 PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun, 1221 1221 &size); 1222 1222 size = sizeof(BOOL); 1223 1223 PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun, … … 1308 1308 size = sizeof(BOOL); 1309 1309 PrfQueryProfileData(fmprof, appname, "SubjectLengthMax", &fSubjectLengthMax, 1310 1310 &size); 1311 1311 if (fSubjectLengthMax) 1312 1312 SubjectDisplayWidth = 0; 1313 1313 else { 1314 1314 PrfQueryProfileData(fmprof, appname, "SubjectDisplayWidth", 1315 1315 &SubjectDisplayWidth, &size); 1316 1316 if (SubjectDisplayWidth < 50) 1317 1317 SubjectDisplayWidth = 0;
Note:
See TracChangeset
for help on using the changeset viewer.