Changeset 1073 for trunk/dll/undel.c
- Timestamp:
- Jul 18, 2008, 2:30:20 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/dll/undel.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/undel.c
r1063 r1073 31 31 #include "errutil.h" // Dos_Error... 32 32 #include "strutil.h" // GetPString 33 #include "pathutil.h" // BldFullPathName 33 34 #include "fm3dll.h" 34 35 #include "fortify.h" … … 48 49 { 49 50 HWND hwnd; 50 CHAR s[CCHMAXPATH * 2] ;51 CHAR s[CCHMAXPATH * 2], szTempFile[CCHMAXPATH]; 51 52 CHAR *path; 52 53 HAB thab; … … 72 73 IncrThreadUsage(); 73 74 WinSendDlgItemMsg(hwnd, UNDEL_LISTBOX, LM_DELETEALL, MPVOID, MPVOID); 74 unlinkf("%s", "$UDELETE.#$#"); 75 fp = xfopen("$UDELETE.#$#", "w", pszSrcFile, __LINE__); 75 if (fUseTmp) 76 BldFullPathName(szTempFile, pTmpDir, "$UDELETE.#$#"); 77 else 78 strcpy(szTempFile, "$UDELETE.#$#"); 79 unlinkf("%s", szTempFile); 80 fp = xfopen(szTempFile, "w", pszSrcFile, __LINE__); 76 81 if (!fp) { 77 82 Win_Error(NULLHANDLE, hwnd, pszSrcFile, __LINE__, … … 103 108 fclose(fp); 104 109 } 105 fp = xfopen( "$UDELETE.#$#", "r", pszSrcFile, __LINE__);110 fp = xfopen(szTempFile, "r", pszSrcFile, __LINE__); 106 111 if (fp) { 107 112 xfgets(s, sizeof(s), fp, pszSrcFile, __LINE__); // Skip 1st line … … 150 155 ; 151 156 } 152 DosForceDelete( "$UDELETE.#$#");157 DosForceDelete(szTempFile); 153 158 xfree(undelinfo, pszSrcFile, __LINE__); 154 159 if (thmq) {
Note:
See TracChangeset
for help on using the changeset viewer.
