Changeset 1554 for trunk/dll/init.c
- Timestamp:
- Nov 21, 2010, 12:35:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1553 r1554 101 101 entries in the tree container, fix related semaphore performance using 102 102 combination of event and mutex semaphores 103 20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused 104 by temp file creation failures. 103 105 104 106 ***********************************************************************/ … … 582 584 strcpy(s, pFM2SaveDirectory); 583 585 AddBackslashToPath(s); 584 //if (s[strlen(s) - 1] != '\\')585 // strcat(s, "\\");586 586 enddir = &s[strlen(s)]; 587 587 strcat(s, "$FM2LI$T."); … … 729 729 ULONG num_matches, ul; 730 730 731 //Save the FM2 save directory name. This is the location of the ini, dat files etc. 732 save_dir2(temp); 733 pFM2SaveDirectory = xstrdup(temp, pszSrcFile, __LINE__); 731 734 strcpy(szTempName, env); 732 735 AddBackslashToPath(szTempName); … … 767 770 rc = DosCreateDir(szTempName, 0); 768 771 if (!rc) 769 pTmpDir = xstrdup(szTempName, pszSrcFile, __LINE__); // if writable 772 pTmpDir = xstrdup(szTempName, pszSrcFile, __LINE__); // if writable 773 else 774 pTmpDir = xstrdup(pFM2SaveDirectory, pszSrcFile, __LINE__); 770 775 } 771 776 } 772 777 } 773 774 //Save the FM2 save directory name. This is the location of the ini, dat files etc.775 {776 CHAR temp[CCHMAXPATH];777 save_dir2(temp);778 pFM2SaveDirectory = xstrdup(temp, pszSrcFile, __LINE__);779 }780 778 // Check free space on TMP and FM2 Save drives 781 779 {
Note:
See TracChangeset
for help on using the changeset viewer.