Changeset 1803 for trunk/dll/copyf.c


Ignore:
Timestamp:
May 2, 2015, 11:56:39 PM (10 years ago)
Author:
Gregg Young
Message:

Changes to allow a JAVA executable object to be created using "Real object" menu item on a jar file. (Ticket [37]) Eliminate redundant prompts and error messages when telling FM/2 not to delete a R/O file. (Ticket [548]) Limit attempts to unlock files to exes and dlls. (Ticket [549])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/copyf.c

    r1785 r1803  
    4141  22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories.
    4242  19 Jul 14 GKY Fix redundant error message following selection of no for unlocking a file
     43  02 May 15 GKY Changes to R/O check to eliminate redundant checks and error messages
     44  02 May 15 GKY Limit unlock attempts to exes and dlls.
    4345
    4446***********************************************************************/
     
    689691  APIRET rc;
    690692  INT ret = -1;
    691   INT retrn;
     693  INT retrn = SM2_YES;
    692694  FILESTATUS3 fsi;
    693695
     
    715717        DosError(FERR_DISABLEHARDERR);
    716718        if (!xDosSetPathInfo(filename, FIL_STANDARD, &fsi, sizeof(fsi), 0))
    717           ret = 0;
    718       }
    719     }
    720   }
    721   if (error ==  ERROR_SHARING_VIOLATION && fUnlock) {
     719          ret = SM2_YES;
     720      }
     721    }
     722  }
     723  if (error ==  ERROR_SHARING_VIOLATION && fUnlock &&
     724      (retrn == SM2_YES || retrn == SM2_DONTASK)   &&
     725      (strstr(strlwr(filename), ".dll") || strstr(strlwr(filename), ".exe"))) {
    722726    retrn = saymsg(MB_YESNO | MB_DEFBUTTON2,
    723727                 HWND_DESKTOP,
Note: See TracChangeset for help on using the changeset viewer.