Changeset 1690 for trunk/dll


Ignore:
Timestamp:
Aug 5, 2013, 2:13:41 AM (12 years ago)
Author:
Gregg Young
Message:

Changes to fix .tar.gz list because of changes in tar 1.20 (maybe earlier). Added lzip support with ungly hack to work around its lack of a list option. Tickets 493, 494

Location:
trunk/dll
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1689 r1690  
    885885        numarcfiles = 0;                // Request close
    886886      else if (!numarcfiles || !gotstart
    887                || (!gotend && info->endlist && *info->endlist && (stricmp(info->endlist, NO_END_OF_ARCHIVER_LIST_STRING)))) {
     887               || (!gotend && info->endlist && *info->endlist &&
     888                   (stricmp(info->endlist, NO_END_OF_ARCHIVER_LIST_STRING)))) {
    888889        // Oops
    889890        ARCDUMP ad;
     
    35993600  static USHORT idinc = 0;
    36003601
     3602
     3603  if (!strcmp(strupr(strrchr(arcname, '.') + 1), "LZ")) {
     3604      saymsg(MB_ENTER | MB_ICONASTERISK, HWND_DESKTOP, GetPString(IDS_LZIPLIMITATION),
     3605             GetPString(IDS_LZIPNOLIST));
     3606    return -1;
     3607  }
     3608
    36013609  if (!idinc)
    36023610    idinc = (rand() % 256);
  • trunk/dll/defview.c

    r1673 r1690  
    302302                           strcmp(realappname, FM3Str)) ?
    303303                          HWND_DESKTOP :
    304                           hwndParent, hwndFrame, filename, 4, NULL);
     304                          hwndParent, hwndFrame, filename, 4, NULL);
     305    if (hwndArc == -1)
     306      return;
     307
    305308    if (!hwndArc) {
    306309      if (!IsExecutable(filename) || !ExecFile(hwnd, filename)) {
  • trunk/dll/filldir.c

    r1673 r1690  
    324324             cmp == *(ULONG *) ".GZ"  || cmp == *(ULONG *) ".Z"   ||
    325325             cmp == *(ULONG *) ".CAB" || cmp == *(ULONG *) ".BZ2" ||
    326              cmp == *(ULONG *) ".WPI")
     326             cmp == *(ULONG *) ".WPI" || cmp == *(ULONG *) ".7Z")
    327327      hptr = hptrArc;
    328328    else if (cmp == *(ULONG *) PCSZ_DOTBMP  ||
  • trunk/dll/fm3res.rc

    r1688 r1690  
    33913391    IDS_SNAPSHOTFILEBADFORMAT             "The snapshot file lists no files or is not formatted correctly"
    33923392    IDS_SNAPSHOTFILELOADFAILED            "The snapshot file %s failed to load"
     3393    IDS_LZIPLIMITATION                    "Lzip Limitation"
     3394    IDS_LZIPNOLIST                        "Lzip doesn't have a list files option"
     3395           
    33933396   
    33943397   
  • trunk/dll/fm3str.h

    r1686 r1690  
    907907#define IDS_FM2LITETEXT                                       879
    908908#define IDS_CHANGECMDLINELENGTHDEFAULT                        880
    909 #define IDS_NODESMAXTEXT                                      882 //Not used
     909#define IDS_LZIPLIMITATION                                    881
     910#define IDS_LZIPNOLIST                                        882
    910911#define IDS_DECRYPT1TEXT                                      883 //Not used
    911912#define IDS_DECRYPT2TEXT                                      884 //Not used
Note: See TracChangeset for help on using the changeset viewer.