Changeset 1686 for trunk/dll/worker.c
- Timestamp:
- Mar 10, 2013, 7:34:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/worker.c
r1682 r1686 53 53 04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog 54 54 for delete of readonly files 55 10 Mar 13 GKY Improvrd readonly check on delete to allow cancel and don't ask again options 56 Added saymsg2 for this purpose 55 57 56 58 ***********************************************************************/ … … 874 876 rc = docopyf(type, wk->li->list[x], newname); 875 877 if (rc == ERROR_ACCESS_DENIED || rc == ERROR_SHARING_VIOLATION) { 876 if (rc == ERROR_ACCESS_DENIED && noreadonlywarn) 877 rc = -1; 878 ret = make_deleteable(newname, rc); 878 ret = make_deleteable(newname, rc, noreadonlywarn); 879 879 rc = docopyf(type, wk->li->list[x], newname); 880 880 } 881 if ( !ret && (rc == ERROR_ACCESS_DENIED || (rc == ERROR_SHARING_VIOLATION && fUnlock)))881 if (rc == ERROR_ACCESS_DENIED || (rc == ERROR_SHARING_VIOLATION && fUnlock)) 882 882 rc = NO_ERROR; 883 883 if (fResetVerify) { … … 1588 1588 HOBJECT hObjectdest, hObjectofObject; 1589 1589 BYTE G_abSupportedDrives[24] = {0}; 1590 ULONG cbSupportedDrives = sizeof(G_abSupportedDrives); 1590 ULONG cbSupportedDrives = sizeof(G_abSupportedDrives); 1591 BOOL ignorereadonly = FALSE; 1591 1592 1592 1593 for (x = 0; wk->li->list[x]; x++) { … … 1732 1733 error = DosForceDelete(wk->li->list[x]); ; 1733 1734 } 1734 if (error) { 1735 if (error) { 1736 INT retrn = 0; 1737 1735 1738 DosError(FERR_DISABLEHARDERR); 1736 make_deleteable(wk->li->list[x], error); 1739 retrn = make_deleteable(wk->li->list[x], error, ignorereadonly); 1740 if (retrn == 2) 1741 break; 1742 if (retrn == 1) 1743 ignorereadonly = TRUE; 1744 if (retrn == 3) 1745 continue; 1737 1746 if (wk->li->type == IDM_DELETE){ 1738 1747 hObjectdest = WinQueryObject("<XWP_TRASHCAN>"); … … 1791 1800 UM_UPDATERECORD, 1792 1801 MPFROMP(wk->li->list[x]), MPVOID); 1793 } 1802 } ; 1794 1803 } // for 1795 1804 }
Note:
See TracChangeset
for help on using the changeset viewer.