Changeset 1750 for trunk/dll/init.c
- Timestamp:
- Mar 1, 2014, 2:55:57 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1743 r1750 124 124 23 Feb 14 JBS Ticket #515: Corrected a mis-coded call to strtol which was causing the traps 125 125 described in this ticket. (Also changed it to strtoul.) 126 01 Mar 14 JBS Ticket #524: Made "searchapath" thread-safe. Function names and signatures were changed. 127 So calls to these functions had to be changed. 126 128 127 129 ***********************************************************************/ … … 196 198 #include "strips.h" // bstrip 197 199 #include "killproc.h" // GetDosPgmName 198 #include "srchpath.h" // searchpath200 #include "srchpath.h" // Search*Path*ForFile 199 201 #include "fortify.h" 200 202 #include "excputil.h" // xbeginthread … … 898 900 } 899 901 else { 900 env = searchpath(profile); 901 if (!env) 902 env = profile; 903 strcpy(inipath, env); 902 CHAR szFullFilename[CCHMAXPATH]; 903 if (!SearchMultiplePathsForFile(profile, szFullFilename)) { 904 strcpy(inipath, szFullFilename); 905 } else { 906 strcpy(inipath, profile); 907 } 904 908 } //fixme the DosCopies probably fail if the INI isn't in the FM2 directory GKY 06 Aug 11 905 909 if (!*inipath) … … 1211 1215 } 1212 1216 { // Check for the existance of various partitioning tools to set up menu items 1213 CHAR *FullPath;1214 1217 ULONG ulAppType; 1215 1218 1216 FullPath = searchapath(PCSZ_PATH, PCSZ_LVMGUICMD); 1217 if (*FullPath) 1219 if (!SearchPathForFile(PCSZ_PATH, PCSZ_LVMGUICMD, NULL)) 1218 1220 fLVMGui = TRUE; 1219 1221 if (!xDosQueryAppType(PCSZ_DFSOS2EXE, &ulAppType))
Note:
See TracChangeset
for help on using the changeset viewer.