- Timestamp:
- Aug 12, 2015, 10:31:54 PM (10 years ago)
- Location:
- trunk/dll
- Files:
-
- 10 edited
-
arccnrs.c (modified) (12 diffs)
-
cmdline.c (modified) (3 diffs)
-
init.c (modified) (2 diffs)
-
killproc.c (modified) (3 diffs)
-
printer.c (modified) (2 diffs)
-
seeall.c (modified) (3 diffs)
-
sysinfo.c (modified) (3 diffs)
-
systemf.c (modified) (2 diffs)
-
undel.c (modified) (5 diffs)
-
worker.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1826 r1846 106 106 06 Apr 14 GKY Removed all BZ/GZ checks 107 107 28 Jun 14 GKY Fix errors identified with CPPCheck; Fix retry to create workdir code 108 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 109 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 108 110 109 111 ***********************************************************************/ … … 591 593 CHAR lonename[CCHMAXPATH + 2], 592 594 *nsize, *osize, *fdate, *fname, *p, *pp, *arctemp; 593 // Change the DosQueryAppType call below to xDosQueryAppType if "s" is no longer in low memory594 595 CHAR s[CCHMAXPATH * 2]; 595 CHAR TestStr[CCHMAXPATH * 2]; 596 CHAR TestStr[CCHMAXPATH * 2]; 596 597 BOOL gotstart; 597 598 BOOL gotend; … … 606 607 APIRET rc; 607 608 CHAR *mode; 608 ULONG cnter = 0; 609 ULONG cnter = 0; 609 610 610 611 if (!arcname || !arcinfo) … … 659 660 *p = 0; 660 661 DosError(FERR_DISABLEHARDERR); 661 if (! DosQueryAppType(s, &apptype) &&662 if (!xDosQueryAppType(s, &apptype) && 662 663 (apptype & FAPPTYP_DOS || 663 664 apptype & FAPPTYP_WINDOWSREAL || … … 701 702 } 702 703 else { 703 rc = 0; 704 rc = 0; 704 705 //DbgMsg(pszSrcFile, __LINE__, "Number of tries %i", cnter); 705 706 rc = SearchPathForFile(PCSZ_PATH, s, NULL); … … 711 712 info->list, 712 713 BldQuotedFileName(s, arcname)); 713 if (cnter == 1) { 714 if (cnter == 1) { 714 715 if (info->test) 715 716 strcpy(TestStr, info->test); … … 944 945 if (tinfo) { 945 946 DosError(FERR_DISABLEHARDERR); 946 DosForceDelete(arctemp);947 xDosForceDelete(arctemp); 947 948 info = tinfo; 948 949 goto ReTry; … … 952 953 DosBeep(750, 50); // wake up user 953 954 954 if (cnter > 0) { 955 if (cnter > 0) { 955 956 CHAR Temp[CCHMAXPATH + 2]; 956 957 … … 965 966 strcpy(ad.listname, arctemp); 966 967 strcpy(ad.arcname, arcname); 967 if (!notest) { 968 if (!notest) { 968 969 strcpy(Temp, info->test); 969 970 info->test = xstrdup(TestStr, pszSrcFile, __LINE__); … … 980 981 info->test = xstrdup(Temp, pszSrcFile, __LINE__); 981 982 } 982 else 983 else 983 984 saymsg(MB_OK, HWND_DESKTOP, GetPString(IDS_ARCMISSINGEXE), 984 985 GetPString(IDS_ARCMISSINGEXEVERBOSE)); … … 999 1000 1000 1001 DosError(FERR_DISABLEHARDERR); 1001 DosForceDelete(arctemp);1002 xDosForceDelete(arctemp); 1002 1003 xfree(arctemp, pszSrcFile, __LINE__); 1003 1004 } … … 1008 1009 return numarcfiles; 1009 1010 } // FillArcCnr 1011 1010 1012 MRESULT EXPENTRY ArcTextProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1011 1013 { -
trunk/dll/cmdline.c
r1750 r1846 30 30 23 Oct 10 GKY Changes to populate and utilize a HELPTABLE for context specific help 31 31 28 Apr 14 JBS Ticket #522: Ensure use of wrapper functions where needed 32 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 33 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 32 34 33 35 ***********************************************************************/ … … 405 407 { 406 408 ULONG apptype = 0L; 407 // Change DosQueryAppType to xDosQueryAppType if "executable"is no longer local408 409 CHAR executable[CCHMAXPATH], commandline[1001], *p; 409 410 … … 449 450 } 450 451 } 451 if ( DosQueryAppType(executable, &apptype) ||452 if (xDosQueryAppType(executable, &apptype) || 452 453 (apptype && !(apptype & 453 454 (FAPPTYP_NOTWINDOWCOMPAT | -
trunk/dll/init.c
r1838 r1846 133 133 02 Aug 15 GKY Serialize local hard drive scanning to reduce drive thrashing continue to scan 134 134 all other drive types in separate threads. 135 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 136 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 135 137 136 138 ***********************************************************************/ … … 653 655 } 654 656 BldFullPathName(szTempFile, pTmpDir, PCSZ_FM2PLAYTEMP); 655 DosForceDelete(szTempFile);657 xDosForceDelete(szTempFile); 656 658 if (pTmpDir) { 657 659 wipeallf(TRUE, "%s\\*", pTmpDir); -
trunk/dll/killproc.c
r1738 r1846 35 35 22 Aug 14 JBS Ticket #519: Corrected mis-coded but probably harmless calls to strtol 36 36 and removed unneeded second parameter variables. 37 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 38 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 37 39 38 40 ***********************************************************************/ … … 278 280 else { 279 281 newstdout = -1; 280 rc = DosDupHandle(fileno(stdout), &newstdout);282 rc = xDosDupHandle(fileno(stdout), &newstdout); 281 283 if (rc) 282 284 Dos_Error(MB_CANCEL, rc, hwnd, __FILE__, __LINE__, PCSZ_DOSDUPHANDLE); 283 285 oldstdout = fileno(stdout); 284 DosDupHandle(fileno(fp), &oldstdout);286 xDosDupHandle(fileno(fp), &oldstdout); 285 287 rc = runemf2(SEPARATE | INVISIBLE | FULLSCREEN | BACKGROUND | WAIT, 286 288 hwnd, pszSrcFile, __LINE__, NULL, NULL, 287 289 "%s", "PSTAT.EXE /C"); 288 290 oldstdout = fileno(stdout); 289 DosDupHandle(newstdout, &oldstdout);291 xDosDupHandle(newstdout, &oldstdout); 290 292 DosClose(newstdout); 291 293 fclose(fp); … … 336 338 Abort: 337 339 BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#"); 338 DosForceDelete(s);340 xDosForceDelete(s); 339 341 PostMsg(hwnd, UM_CONTAINER_FILLED, MPVOID, MPVOID); 340 342 WinDestroyMsgQueue(thmq); -
trunk/dll/printer.c
r1673 r1846 16 16 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 17 17 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 18 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 19 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 18 20 19 21 ***********************************************************************/ … … 92 94 return TRUE; 93 95 } 94 if (! DosQueryHType(fileno(printhandle), &htype, &flagword) &&96 if (!xDosQueryHType(fileno(printhandle), &htype, &flagword) && 95 97 !(htype & 7)) { 96 98 fclose(printhandle); -
trunk/dll/seeall.c
r1803 r1846 64 64 02 May 15 GKY Changes to allow a JAVA executable object to be created using "Real object" 65 65 menu item on a jar file. 66 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 67 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 66 68 67 69 ***********************************************************************/ … … 1098 1100 error = DosDelete(list[x]); 1099 1101 else 1100 error = DosForceDelete(list[x]);1102 error = xDosForceDelete(list[x]); 1101 1103 if (error) { 1102 1104 DosError(FERR_DISABLEHARDERR); … … 1111 1113 error = DosDelete(list[x]); 1112 1114 else 1113 error = DosForceDelete(list[x]);1115 error = xDosForceDelete(list[x]); 1114 1116 } 1115 1117 } -
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 -
trunk/dll/systemf.c
r1843 r1846 45 45 and file. 46 46 28 Apr 14 JBS Ticket #522: Ensure use of wrapper functions where needed 47 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 48 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 47 49 48 50 ***********************************************************************/ … … 1217 1219 switch_to(pszDirectory); 1218 1220 } 1219 ret = DosStartSession(&sdata, &ulSessID, &sessPID);1221 ret = xDosStartSession(&sdata, &ulSessID, &sessPID); 1220 1222 1221 1223 -
trunk/dll/undel.c
r1554 r1846 107 107 else { 108 108 newstdout = -1; 109 if ( DosDupHandle(fileno(stdout), &newstdout)) {109 if (xDosDupHandle(fileno(stdout), &newstdout)) { 110 110 saymsg(MB_CANCEL, 111 111 hwnd, … … 116 116 } 117 117 oldstdout = fileno(stdout); 118 DosDupHandle(fileno(fp), &oldstdout);118 xDosDupHandle(fileno(fp), &oldstdout); 119 119 runemf2(SEPARATE | INVISIBLE | WINDOWED | BACKGROUND | WAIT, 120 120 hwnd, pszSrcFile, __LINE__, … … 124 124 path, (undelinfo->inclsubdirs) ? " /S" : NullStr); 125 125 oldstdout = fileno(stdout); 126 DosDupHandle(newstdout, &oldstdout);126 xDosDupHandle(newstdout, &oldstdout); 127 127 DosClose(newstdout); 128 128 fclose(fp); … … 176 176 ; 177 177 } 178 DosForceDelete(szTempFile);178 xDosForceDelete(szTempFile); 179 179 xfree(undelinfo, pszSrcFile, __LINE__); 180 180 if (thmq) { … … 428 428 429 429 FILE *fp; 430 CHAR s[CCHMAXPATH + 1];431 CHAR *modew = "w";432 433 DosForceDelete("\\FMUNDEL.CMD");430 CHAR s[CCHMAXPATH + 1]; 431 CHAR *modew = "w"; 432 433 xDosForceDelete("\\FMUNDEL.CMD"); 434 434 fp = xfopen("\\FMUNDEL.CMD", modew, pszSrcFile, __LINE__, FALSE); 435 435 if (fp) { -
trunk/dll/worker.c
r1834 r1846 68 68 24 Jun 15 GKY Corrected failure to show error message when locked non-exe/dll file fails 69 69 delete 70 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 71 Calls to unsafe Dos... functions have been changed to call the wrapped xDos... functions 70 72 71 73 ***********************************************************************/ … … 1804 1806 } 1805 1807 else 1806 error = DosForceDelete(wk->li->list[x]);1808 error = xDosForceDelete(wk->li->list[x]); 1807 1809 } 1808 1810 DosReleaseMutexSem(hmtxFM2Delete);
Note:
See TracChangeset
for help on using the changeset viewer.
