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) { -
trunk/dll/chklist.c
r1221 r1301 13 13 22 Mar 07 GKY Use QWL_USER 14 14 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 15 29 Nov 08 GKY Add flag to tell CheckListProc file is in an archive so it won't try to open it. 15 16 16 17 ***********************************************************************/ … … 171 172 *szBuffer = 0; 172 173 WinSendDlgItemMsg(hwnd, CHECK_LISTBOX, LM_QUERYITEMTEXT, 173 MPFROM2SHORT(x, CCHMAXPATH), MPFROMP(szBuffer)); 174 if (*szBuffer) 174 MPFROM2SHORT(x, CCHMAXPATH), MPFROMP(szBuffer)); 175 cl = WinQueryWindowPtr(hwnd, QWL_USER); 176 if (*szBuffer && !(cl->flags & CHECK_ARCHIVE)) 175 177 QuickView(hwnd, szBuffer); 176 178 } -
trunk/dll/chklist.h
r1221 r1301 10 10 11 11 05 Sep 08 JBS Ticket 187: Refactor FM3DLL.H 12 29 Nov 08 GKY Add flag to tell CheckListProc file is in an archive so it won't try to open it. 12 13 13 14 ***********************************************************************/ … … 17 18 #define CHKLIST_H 18 19 19 #define CHECK_FILES 1 20 #define CHECK_FILES 1 //CHECKLIST flag 21 #define CHECK_ARCHIVE 2 //CHECKLIST flag file in archive 20 22 21 23 typedef struct
Note:
See TracChangeset
for help on using the changeset viewer.