Changeset 1846 for trunk/dll/arccnrs.c
- Timestamp:
- Aug 12, 2015, 10:31:54 PM (10 years ago)
- File:
-
- 1 edited
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 {
Note:
See TracChangeset
for help on using the changeset viewer.