Changeset 1306 for trunk/dll/arccnrs.c
- Timestamp:
- Nov 30, 2008, 8:23:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1301 r1306 64 64 29 Nov 08 GKY Add flag to tell CheckListProc file is in an archive so it won't try to open it. 65 65 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate. 66 30 Nov 08 GKY Add the option of creating a subdirectory from the arcname 67 for the extract path to arc container. 66 68 67 69 ***********************************************************************/ … … 158 160 CHAR ArcTempRoot[CCHMAXPATH]; 159 161 BOOL fArcStuffVisible; 162 BOOL fFileNameCnrPath; 160 163 161 164 #pragma data_seg(GLOBAL2) … … 1818 1821 1819 1822 for (x = 0; li->list[x]; x++) { 1820 BldFullPathName(fullname, li->targetpath, li->list[x]); 1823 BldFullPathName(fullname, li->targetpath, li->list[x]); 1824 //Check if file already exists on disk warn if it does. 1821 1825 if (IsFile(fullname) != -1) { 1822 1826 AddToList(li->list[x], &exfiles, &numfiles, &numalloc); … … 1850 1854 else if (ckl.list) 1851 1855 li->list = CombineLists(li->list, ckl.list); 1852 } 1856 } // end check and warn 1853 1857 } 1854 1858 if (!li->list || !li->list[0]) … … 3714 3718 else 3715 3719 strcpy(dcd->directory, extractpath); 3716 } 3720 } 3721 if (!*dcd->directory && fFileNameCnrPath && dcd->arcname) { 3722 3723 strcpy(fullname, dcd->arcname); 3724 p = strrchr(fullname, '.'); 3725 if (p) 3726 *p = 0; 3727 else { 3728 p = fullname + strlen(dcd->arcname); 3729 p--; 3730 *p = 0; 3731 } 3732 strcpy(dcd->directory, fullname); 3733 } 3717 3734 if (!*dcd->directory && *lastextractpath) { 3718 3735 //DosEnterCritSec(); //GKY 11-29-08
Note:
See TracChangeset
for help on using the changeset viewer.