Changeset 1301 for trunk/dll/arccnrs.c
- Timestamp:
- Nov 30, 2008, 6:25:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1298 r1301 62 62 the archiver process closes. (Ticket 58) 63 63 23 Nov 08 JBS Ticket 284: Support archivers with no Start or End of list strings 64 29 Nov 08 GKY Add flag to tell CheckListProc file is in an archive so it won't try to open it. 65 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate. 64 66 65 67 ***********************************************************************/ … … 676 678 // gotend = !info->endlist || 677 679 // !*info->endlist || // If list has no end marker 678 // (stricmp(info->endlist, "*#* None *#*") == 0); 680 // (stricmp(info->endlist, "*#* None *#*") == 0); 679 681 680 682 while (!feof(fp) && !gotend && !*pStopFlag) { … … 1727 1729 ck.list = li->list; 1728 1730 ck.cmd = li->type; 1729 ck.prompt = prompt; 1731 ck.prompt = prompt; 1732 ck.flags = CHECK_ARCHIVE; 1730 1733 sprintf(prompt, GetPString(IDS_ARCCNRDELREFTEXT), 1731 1734 (li->type == IDM_DELETE) ? … … 1824 1827 } 1825 1828 } 1826 1829 if (exfiles && numfiles) { 1827 1830 1828 1831 CHECKLIST ckl; … … 1833 1836 ckl.list = exfiles; 1834 1837 ckl.prompt = prompt; 1835 ckl.cmd = li->type; 1838 ckl.cmd = li->type; 1839 ckl.flags = CHECK_ARCHIVE; 1836 1840 sprintf(prompt, 1837 1841 GetPString(IDS_REPLACEWARNTEXT), … … 2617 2621 if (!SetDir(dcd->hwndParent, hwnd, s, 0)) { 2618 2622 if (stricmp(dcd->directory, s)) { 2619 DosEnterCritSec(); 2620 strcpy(lastextractpath, s); 2621 DosExitCritSec(); 2623 //DosEnterCritSec(); //GKY 11-29-08 2624 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 2625 strcpy(lastextractpath, s); 2626 DosReleaseMutexSem(hmtxFM2Globals); 2627 //DosExitCritSec(); 2622 2628 } 2623 2629 strcpy(dcd->directory, s); … … 3055 3061 if (mp2) { 3056 3062 if (stricmp(dcd->directory, (CHAR *) mp2)) { 3057 DosEnterCritSec(); 3063 //DosEnterCritSec(); //GKY 11-29-08 3064 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 3058 3065 strcpy(lastextractpath, (CHAR *) mp2); 3059 MakeValidDir(lastextractpath); 3060 DosExitCritSec(); 3066 MakeValidDir(lastextractpath); 3067 DosReleaseMutexSem(hmtxFM2Globals); 3068 //DosExitCritSec(); 3061 3069 } 3062 3070 strcpy(dcd->directory, (CHAR *) mp2); … … 3708 3716 } 3709 3717 if (!*dcd->directory && *lastextractpath) { 3710 DosEnterCritSec(); 3711 strcpy(dcd->directory, lastextractpath); 3712 DosExitCritSec(); 3718 //DosEnterCritSec(); //GKY 11-29-08 3719 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 3720 strcpy(dcd->directory, lastextractpath); 3721 DosReleaseMutexSem(hmtxFM2Globals); 3722 //DosExitCritSec(); 3713 3723 } 3714 3724 if (!*dcd->directory) {
Note:
See TracChangeset
for help on using the changeset viewer.