Changeset 1741


Ignore:
Timestamp:
Feb 23, 2014, 12:32:04 AM (12 years ago)
Author:
Gregg Young
Message:

Fix warn readonly yes don't ask to work when recursing directories.

Location:
trunk/dll
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1738 r1741  
    9292                It was never fully implemented and doesn't make sense for the container.
    9393  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.
    9495
    9596***********************************************************************/
     
    30943095            li->type = SHORT1FROMMP(mp1);
    30953096            li->hwnd = hwnd;
    3096             li->list = BuildArcList(hwnd);
     3097            li->list = BuildArcList(hwnd);
     3098            if (li->type == IDM_DELETE)
     3099              ignorereadonly = FALSE;
    30973100            if (li->type == IDM_REFRESH) {
    30983101
  • trunk/dll/collect.c

    r1702 r1741  
    8383  05 Sep 12 SHL Correct UM_COLLECTFROMFILE bad list file reporting
    8484  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.
    8586
    8687***********************************************************************/
     
    158159#include "excputil.h"                   // xbeginthread
    159160#include "walkem.h"                     // WalkAllDlgProc
     161#include "copyf.h"                      // ignorereadonly
    160162
    161163// Data definitions
     
    640642      case IDM_MCIPLAY:
    641643      case IDM_UPDATE:
     644        if (li->type == IDM_DELETE)
     645          ignorereadonly = FALSE;
    642646        if (PostMsg(hwnd, UM_MASSACTION, mp1, mp2))
    643647          return (MRESULT) TRUE;
     
    23932397                action = UM_MASSACTION;
    23942398                break;
    2395               }
     2399              }
     2400              if (li->type == IDM_DELETE)
     2401                ignorereadonly = FALSE;
    23962402              if (li->type == IDM_SHADOW || li->type == IDM_OBJECT ||
    23972403                  li->type == IDM_SHADOW2)
  • trunk/dll/copyf.c

    r1740 r1741  
    3939                and so it works with move to trashcan inabled.
    4040  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.
    4142
    4243***********************************************************************/
     
    7778static CHAR *GetLongName(CHAR * oldname, CHAR * buffer);
    7879static CHAR *TruncName(CHAR * oldname, CHAR * buffer);
     80
     81BOOL ignorereadonly = FALSE;
    7982
    8083//static CHAR default_disk(VOID);
     
    534537        if (!IsFile(dir)) {
    535538          if (!strchr(dir, '?') && !strchr(dir, '*'))
    536             wipeallf(FALSE, "%s\\*", dir);
     539            wipeallf(TRUE, "%s\\*", dir);
    537540          DosError(FERR_DISABLEHARDERR);
    538541          if (DosDeleteDir(dir)) {
     
    621624          else {
    622625            // remove directory
    623             wipeallf(FALSE, "%s\\*", oldname);
     626            wipeallf(TRUE, "%s\\*", oldname);
    624627            DosError(FERR_DISABLEHARDERR);
    625628            if (DosDeleteDir(oldname)) {
  • trunk/dll/copyf.h

    r1712 r1741  
    1818  09 Feb 14 GKY Modified wipeallf to allow suppression of the readonly warning on delete
    1919                of temporary files
     20  22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories.
    2021
    2122***********************************************************************/
     
    2425
    2526#define COPYF_H
     27extern BOOL ignorereadonly;
    2628
    2729BOOL AdjustWildcardName(CHAR * oldname, CHAR * newname);
  • trunk/dll/dircnrs.c

    r1675 r1741  
    8383  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
    8484                copy, move and delete operations
     85  22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories.
    8586
    8687***********************************************************************/
     
    161162#include "excputil.h"                   // 06 May 08 SHL added
    162163#include "pathutil.h"                   // AddBackslashToPath
     164#include "copyf.h"                      // ignorereadonly
    163165
    164166// Data definitions
     
    975977      case IDM_MCIPLAY:
    976978      case IDM_UPDATE:
     979        if (li->type == IDM_DELETE)
     980          ignorereadonly = FALSE;
    977981        if (PostMsg(hwnd, UM_MASSACTION, mp1, mp2))
    978982          return (MRESULT) TRUE;
     
    26262630            li->hwnd = hwnd;
    26272631            li->list = BuildList(hwnd);
     2632            if (li->type == IDM_DELETE)
     2633              ignorereadonly = FALSE;
    26282634            switch (SHORT1FROMMP(mp1)) {
    26292635            case IDM_WILDMOVE:
     
    26972703                action = UM_MASSACTION;
    26982704                break;
    2699               }
     2705              }
     2706              if (li->type == IDM_DELETE)
     2707                ignorereadonly = FALSE;
    27002708              if (SHORT1FROMMP(mp1) == IDM_OBJECT ||
    27012709                  SHORT1FROMMP(mp1) == IDM_SHADOW ||
  • trunk/dll/seeall.c

    r1722 r1741  
    6161  16 Feb 14 GKY Rework readonly check on delete code so it actually works in a logical way
    6262                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.
    6364
    6465***********************************************************************/
     
    980981          CHAR prompt[CCHMAXPATH * 3];
    981982          APIRET error;
    982           BOOL ignorereadonly = FALSE;
    983983
    984984          for (x = 0; list[x]; x++) {
     
    43464346              case IDM_SHADOW:
    43474347              case IDM_OPENSETTINGS:
    4348               case IDM_OPENDEFAULT:
     4348              case IDM_OPENDEFAULT:
     4349                if (SHORT1FROMMP(mp1) == IDM_DELETE)
     4350                  ignorereadonly = FALSE;
    43494351                if (!PostMsg(pAD->hwndObj, UM_MASSACTION, mp1, MPFROMP(list)))
    43504352                  FreeList(list);
  • trunk/dll/treecnr.c

    r1675 r1741  
    9090  30 Dec 12 GKY Changed refresh removable media to query LVM directly to call Rediscover_PRMs (Ticket 472);
    9191                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.
    9293
    9394***********************************************************************/
     
    157158#include "init.h"                       // GetTidForWindow
    158159#include "excputil.h"                   // xbeginthread
     160#include "copyf.h"                      // ignorereadonly
    159161
    160162// Data definitions
     
    903905      case IDM_DELETE:
    904906      case IDM_PERMDELETE:
     907        if (li->type == IDM_DELETE)
     908          ignorereadonly = FALSE;
    905909        if (PostMsg(hwnd, UM_MASSACTION, mp1, mp2))
    906910          return (MRESULT) TRUE;
     
    30053009            case IDM_MCIPLAY:
    30063010              action = UM_MASSACTION;
    3007             }
     3011            }
     3012            if (li->type == IDM_DELETE)
     3013              ignorereadonly = FALSE;
    30083014            if (SHORT1FROMMP(mp1) == IDM_SHADOW ||
    30093015                SHORT1FROMMP(mp1) == IDM_SHADOW2)
  • trunk/dll/worker.c

    r1739 r1741  
    6363  22 Feb 14 GKY Cleanup of readonly check code suppress spurious error on blocked directory
    6464                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.
    6566
    6667***********************************************************************/
     
    16041605              BYTE G_abSupportedDrives[24] = {0};
    16051606              ULONG cbSupportedDrives = sizeof(G_abSupportedDrives);
    1606               BOOL ignorereadonly = FALSE;
    16071607              INT retrn = 0;
    16081608
     
    17111711                                 &fsa, (ULONG) sizeof(FILESTATUS3));
    17121712                if (fsa.attrFile & FILE_DIRECTORY) {
    1713                   error = (APIRET) wipeallf(FALSE, "%s%s*",
     1713                  error = (APIRET) wipeallf(ignorereadonly, "%s%s*",
    17141714                                            wk->li->list[x],
    17151715                                            (*wk->li->list[x] &&
Note: See TracChangeset for help on using the changeset viewer.