Changeset 1686 for trunk/dll/seeall.c


Ignore:
Timestamp:
Mar 10, 2013, 7:34:34 PM (12 years ago)
Author:
Gregg Young
Message:

GKY Improvrd readonly check on delete to allow cancel and don't ask again options; Added saymsg2 for this purpose; Fixes to snapshot file. cs 1685 contained the COMP.C changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r1682 r1686  
    5555  04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
    5656                for delete of readonly files
     57  10 Mar 13 GKY Improvrd readonly check on delete to allow cancel and don't ask again options
     58                Added saymsg2 for this purpose
    5759
    5860***********************************************************************/
     
    974976          CHAR prompt[CCHMAXPATH * 3];
    975977          APIRET error;
     978          BOOL ignorereadonly = FALSE;
    976979
    977980          for (x = 0; list[x]; x++) {
     
    10821085                DosDeleteDir(list[x]);
    10831086            }
    1084             else {
     1087            else {
     1088              INT retrn = 0;
     1089
    10851090              DosError(FERR_DISABLEHARDERR);
    10861091              if (SHORT1FROMMP(mp1) == IDM_DELETE)
     
    10901095              if (error) {
    10911096                DosError(FERR_DISABLEHARDERR);
    1092                 make_deleteable(list[x], error);
     1097                retrn = make_deleteable(list[x], error, ignorereadonly);
     1098                if (retrn == 2)
     1099                  break;
     1100                if (retrn == 1)
     1101                  ignorereadonly = TRUE;
     1102                if (retrn == 3)
     1103                  continue;
    10931104                if (SHORT1FROMMP(mp1) == IDM_DELETE)
    10941105                  error = DosDelete(list[x]);
Note: See TracChangeset for help on using the changeset viewer.