Changeset 1741
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1738 r1741 92 92 It was never fully implemented and doesn't make sense for the container. 93 93 09 Feb 14 GKY Fix trap on opening a file without an extention 94 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 94 95 95 96 ***********************************************************************/ … … 3094 3095 li->type = SHORT1FROMMP(mp1); 3095 3096 li->hwnd = hwnd; 3096 li->list = BuildArcList(hwnd); 3097 li->list = BuildArcList(hwnd); 3098 if (li->type == IDM_DELETE) 3099 ignorereadonly = FALSE; 3097 3100 if (li->type == IDM_REFRESH) { 3098 3101 -
trunk/dll/collect.c
r1702 r1741 83 83 05 Sep 12 SHL Correct UM_COLLECTFROMFILE bad list file reporting 84 84 13 Dec 13 SHL CollectorCnrWndProc IDM_FILTER: avoid exception on missing fileName 85 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 85 86 86 87 ***********************************************************************/ … … 158 159 #include "excputil.h" // xbeginthread 159 160 #include "walkem.h" // WalkAllDlgProc 161 #include "copyf.h" // ignorereadonly 160 162 161 163 // Data definitions … … 640 642 case IDM_MCIPLAY: 641 643 case IDM_UPDATE: 644 if (li->type == IDM_DELETE) 645 ignorereadonly = FALSE; 642 646 if (PostMsg(hwnd, UM_MASSACTION, mp1, mp2)) 643 647 return (MRESULT) TRUE; … … 2393 2397 action = UM_MASSACTION; 2394 2398 break; 2395 } 2399 } 2400 if (li->type == IDM_DELETE) 2401 ignorereadonly = FALSE; 2396 2402 if (li->type == IDM_SHADOW || li->type == IDM_OBJECT || 2397 2403 li->type == IDM_SHADOW2) -
trunk/dll/copyf.c
r1740 r1741 39 39 and so it works with move to trashcan inabled. 40 40 22 Feb 14 GKY Fix wipeallf to recurss properly 41 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 41 42 42 43 ***********************************************************************/ … … 77 78 static CHAR *GetLongName(CHAR * oldname, CHAR * buffer); 78 79 static CHAR *TruncName(CHAR * oldname, CHAR * buffer); 80 81 BOOL ignorereadonly = FALSE; 79 82 80 83 //static CHAR default_disk(VOID); … … 534 537 if (!IsFile(dir)) { 535 538 if (!strchr(dir, '?') && !strchr(dir, '*')) 536 wipeallf( FALSE, "%s\\*", dir);539 wipeallf(TRUE, "%s\\*", dir); 537 540 DosError(FERR_DISABLEHARDERR); 538 541 if (DosDeleteDir(dir)) { … … 621 624 else { 622 625 // remove directory 623 wipeallf( FALSE, "%s\\*", oldname);626 wipeallf(TRUE, "%s\\*", oldname); 624 627 DosError(FERR_DISABLEHARDERR); 625 628 if (DosDeleteDir(oldname)) { -
trunk/dll/copyf.h
r1712 r1741 18 18 09 Feb 14 GKY Modified wipeallf to allow suppression of the readonly warning on delete 19 19 of temporary files 20 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 20 21 21 22 ***********************************************************************/ … … 24 25 25 26 #define COPYF_H 27 extern BOOL ignorereadonly; 26 28 27 29 BOOL AdjustWildcardName(CHAR * oldname, CHAR * newname); -
trunk/dll/dircnrs.c
r1675 r1741 83 83 04 Aug 12 GKY Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of 84 84 copy, move and delete operations 85 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 85 86 86 87 ***********************************************************************/ … … 161 162 #include "excputil.h" // 06 May 08 SHL added 162 163 #include "pathutil.h" // AddBackslashToPath 164 #include "copyf.h" // ignorereadonly 163 165 164 166 // Data definitions … … 975 977 case IDM_MCIPLAY: 976 978 case IDM_UPDATE: 979 if (li->type == IDM_DELETE) 980 ignorereadonly = FALSE; 977 981 if (PostMsg(hwnd, UM_MASSACTION, mp1, mp2)) 978 982 return (MRESULT) TRUE; … … 2626 2630 li->hwnd = hwnd; 2627 2631 li->list = BuildList(hwnd); 2632 if (li->type == IDM_DELETE) 2633 ignorereadonly = FALSE; 2628 2634 switch (SHORT1FROMMP(mp1)) { 2629 2635 case IDM_WILDMOVE: … … 2697 2703 action = UM_MASSACTION; 2698 2704 break; 2699 } 2705 } 2706 if (li->type == IDM_DELETE) 2707 ignorereadonly = FALSE; 2700 2708 if (SHORT1FROMMP(mp1) == IDM_OBJECT || 2701 2709 SHORT1FROMMP(mp1) == IDM_SHADOW || -
trunk/dll/seeall.c
r1722 r1741 61 61 16 Feb 14 GKY Rework readonly check on delete code so it actually works in a logical way 62 62 and so it works with move to trashcan inabled. 63 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 63 64 64 65 ***********************************************************************/ … … 980 981 CHAR prompt[CCHMAXPATH * 3]; 981 982 APIRET error; 982 BOOL ignorereadonly = FALSE;983 983 984 984 for (x = 0; list[x]; x++) { … … 4346 4346 case IDM_SHADOW: 4347 4347 case IDM_OPENSETTINGS: 4348 case IDM_OPENDEFAULT: 4348 case IDM_OPENDEFAULT: 4349 if (SHORT1FROMMP(mp1) == IDM_DELETE) 4350 ignorereadonly = FALSE; 4349 4351 if (!PostMsg(pAD->hwndObj, UM_MASSACTION, mp1, MPFROMP(list))) 4350 4352 FreeList(list); -
trunk/dll/treecnr.c
r1675 r1741 90 90 30 Dec 12 GKY Changed refresh removable media to query LVM directly to call Rediscover_PRMs (Ticket 472); 91 91 Also added a tree rescan following volume detach. 92 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 92 93 93 94 ***********************************************************************/ … … 157 158 #include "init.h" // GetTidForWindow 158 159 #include "excputil.h" // xbeginthread 160 #include "copyf.h" // ignorereadonly 159 161 160 162 // Data definitions … … 903 905 case IDM_DELETE: 904 906 case IDM_PERMDELETE: 907 if (li->type == IDM_DELETE) 908 ignorereadonly = FALSE; 905 909 if (PostMsg(hwnd, UM_MASSACTION, mp1, mp2)) 906 910 return (MRESULT) TRUE; … … 3005 3009 case IDM_MCIPLAY: 3006 3010 action = UM_MASSACTION; 3007 } 3011 } 3012 if (li->type == IDM_DELETE) 3013 ignorereadonly = FALSE; 3008 3014 if (SHORT1FROMMP(mp1) == IDM_SHADOW || 3009 3015 SHORT1FROMMP(mp1) == IDM_SHADOW2) -
trunk/dll/worker.c
r1739 r1741 63 63 22 Feb 14 GKY Cleanup of readonly check code suppress spurious error on blocked directory 64 64 delete and eliminated the check on additional temp file deletes 65 22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories. 65 66 66 67 ***********************************************************************/ … … 1604 1605 BYTE G_abSupportedDrives[24] = {0}; 1605 1606 ULONG cbSupportedDrives = sizeof(G_abSupportedDrives); 1606 BOOL ignorereadonly = FALSE;1607 1607 INT retrn = 0; 1608 1608 … … 1711 1711 &fsa, (ULONG) sizeof(FILESTATUS3)); 1712 1712 if (fsa.attrFile & FILE_DIRECTORY) { 1713 error = (APIRET) wipeallf( FALSE, "%s%s*",1713 error = (APIRET) wipeallf(ignorereadonly, "%s%s*", 1714 1714 wk->li->list[x], 1715 1715 (*wk->li->list[x] &&
Note:
See TracChangeset
for help on using the changeset viewer.
