Changeset 1073 for trunk/dll/sysinfo.c
- Timestamp:
- Jul 18, 2008, 2:30:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/sysinfo.c
r907 r1073 24 24 #define INCL_LONGLONG 25 25 26 #include "pathutil.h" // BldFullPathName 26 27 #include "fm3dlg.h" 27 28 #include "fm3dll.h" … … 34 35 { 35 36 HWND hwnd = (HWND) arg; 36 CHAR s[2048], *p ;37 CHAR s[2048], *p, szTempFile[CCHMAXPATH]; 37 38 HAB thab; 38 39 HMQ thmq; … … 48 49 if (!WinIsWindow(thab, hwnd)) 49 50 goto Abort; 50 unlinkf("%s", "$RMVIEW.#$#"); 51 fp = xfopen("$RMVIEW.#$#", "w", pszSrcFile, __LINE__); 51 if (fUseTmp) 52 BldFullPathName(szTempFile, pTmpDir, "$RMVIEW.#$#"); 53 else 54 strcpy(szTempFile, "$RMVIEW.#$#"); 55 unlinkf("%s", szTempFile); 56 fp = xfopen(szTempFile, "w", pszSrcFile, __LINE__); 52 57 if (!fp) 53 58 goto Abort; … … 62 67 runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT, 63 68 hwnd, pszSrcFile, __LINE__, 64 NULL, NULL, "%s", "RMVIEW.EXE");69 NULL, NULL, "%s", szTempFile); 65 70 oldstdout = fileno(stdout); 66 71 DosDupHandle(newstdout, &oldstdout); … … 70 75 if (!WinIsWindow(thab, hwnd)) 71 76 goto Abort; 72 fp = xfopen( "$RMVIEW.#$#", "r", pszSrcFile, __LINE__);77 fp = xfopen(szTempFile, "r", pszSrcFile, __LINE__); 73 78 if (fp) { 74 79 xfgets(s, sizeof(s), fp, pszSrcFile, __LINE__); … … 98 103 WinTerminate(thab); 99 104 } 100 DosForceDelete("$RMVIEW.#$#"); 105 if (szTempFile) 106 DosForceDelete(szTempFile); 101 107 } 102 108
Note:
See TracChangeset
for help on using the changeset viewer.