Changeset 1082 for trunk/dll/inis.c
- Timestamp:
- Jul 20, 2008, 12:37:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/inis.c
r1063 r1082 26 26 09 Jan 08 SHL Use CloseProfile to avoid spurious system INI closes 27 27 29 Feb 08 GKY Use xfree where appropriate 28 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory or pTmpDir and use BldFullPathName 28 29 29 30 ***********************************************************************/ … … 46 47 #include "errutil.h" // Dos_Error... 47 48 #include "strutil.h" // GetPString 49 #include "pathutil.h" // BldFullPathName 48 50 #include "fm3dll.h" 49 51 #include "fortify.h" … … 1134 1136 /* make copies of new inis */ 1135 1137 *tempuserini = 0; 1136 *tempsysini = 0; 1137 save_dir2(tempuserini); 1138 *tempsysini = 0; 1139 BldFullPathName(tempuserini, pTmpDir ? pTmpDir : pFM2SaveDirectory, "TEMPUSER.INI"); 1140 /*save_dir2(tempuserini); 1138 1141 if (tempuserini[strlen(tempuserini) - 1] != '\\') 1139 1142 strcat(tempuserini, "\\"); 1140 strcat(tempuserini, "TEMPUSER.INI"); 1143 strcat(tempuserini, "TEMPUSER.INI");*/ 1141 1144 rc = DosCopy(userini, tempuserini, DCPY_EXISTING); 1142 1145 if (rc) { … … 1148 1151 GetPString(IDS_COMPCOPYFAILEDTEXT), userini, tempuserini); 1149 1152 break; 1150 } 1151 save_dir2(tempsysini); 1153 } 1154 BldFullPathName(tempsysini, pTmpDir ? pTmpDir : pFM2SaveDirectory, "TEMPSYS.INI"); 1155 /*save_dir2(tempsysini); 1152 1156 if (tempsysini[strlen(tempsysini) - 1] != '\\') 1153 1157 strcat(tempsysini, "\\"); 1154 strcat(tempsysini, "TEMPSYS.INI"); 1158 strcat(tempsysini, "TEMPSYS.INI");*/ 1155 1159 rc = DosCopy(sysini, tempsysini, DCPY_EXISTING); 1156 1160 if (rc) {
Note:
See TracChangeset
for help on using the changeset viewer.