Changeset 1846 for trunk/dll/sysinfo.c
- Timestamp:
- Aug 12, 2015, 10:31:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/sysinfo.c
r1673 r1846 19 19 20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused 20 20 by temp file creation failures. 21 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 22 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 21 23 22 24 ***********************************************************************/ … … 74 76 else { 75 77 newstdout = -1; 76 if ( DosDupHandle(fileno(stdout), &newstdout)) {78 if (xDosDupHandle(fileno(stdout), &newstdout)) { 77 79 fclose(fp); 78 80 goto Abort; 79 81 } 80 82 oldstdout = fileno(stdout); 81 DosDupHandle(fileno(fp), &oldstdout);83 xDosDupHandle(fileno(fp), &oldstdout); 82 84 runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT, 83 85 hwnd, pszSrcFile, __LINE__, 84 86 NULL, NULL, "%s", szTempFile); 85 87 oldstdout = fileno(stdout); 86 DosDupHandle(newstdout, &oldstdout);88 xDosDupHandle(newstdout, &oldstdout); 87 89 DosClose(newstdout); 88 90 fclose(fp); … … 120 122 } 121 123 if (szTempFile) 122 DosForceDelete(szTempFile);124 xDosForceDelete(szTempFile); 123 125 } 124 126
Note:
See TracChangeset
for help on using the changeset viewer.