Changeset 1739


Ignore:
Timestamp:
Feb 22, 2014, 10:06:09 PM (12 years ago)
Author:
Gregg Young
Message:

Cleanup of readonly check code suppress spurious error on blocked directory delete and eliminated the check on additional temp file deletes

Location:
trunk/dll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1720 r1739  
    120120                started from fm2 after fm2 has been started with stdout and stderr
    121121                redirected to a file.
     122  22 Feb 14 GKY Cleanup of readonly check code suppress spurious error on blocked directory
     123                delete and eliminated the check on additional temp file deletes
    122124
    123125***********************************************************************/
     
    596598        strcpy(enddir, ffb.achName);
    597599        if (ffb.attrFile & FILE_DIRECTORY) {
    598           wipeallf(FALSE, "%s\\*", s);
     600          wipeallf(TRUE, "%s\\*", s);
    599601          DosDeleteDir(s);
    600602        }
     
    636638  DosForceDelete(szTempFile);
    637639  if (pTmpDir) {
    638     wipeallf(FALSE, "%s\\*", pTmpDir);
     640    wipeallf(TRUE, "%s\\*", pTmpDir);
    639641    DosDeleteDir(pTmpDir);
    640642  }
  • trunk/dll/worker.c

    r1721 r1739  
    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 Cleanup of readonly check code suppress spurious error on blocked directory
     64                delete and eliminated the check on additional temp file deletes
    6365
    6466***********************************************************************/
     
    17891791                  }
    17901792                  DosReleaseMutexSem(hmtxFM2Delete);
    1791                 }
    1792                 if (error && (error != 5 ||
    1793                               (error == 5 &&
     1793                }
     1794                //DbgMsg(pszSrcFile, __LINE__, "error %i retrn %i", error, retrn);
     1795                if (fWarnReadOnly && error ==  ERROR_FILE_EXISTS) {
     1796                  error = ERROR_ACCESS_DENIED;
     1797                  retrn = SM2_NO;
     1798                }
     1799                if (error && (error != ERROR_ACCESS_DENIED ||
     1800                              (error == ERROR_ACCESS_DENIED &&
    17941801                               (retrn == SM2_YES || retrn == SM2_DONTASK || retrn == 0)))) {
    17951802                  if (LogFileHandle)
Note: See TracChangeset for help on using the changeset viewer.