Changeset 1297 for trunk/dll/avv.c


Ignore:
Timestamp:
Nov 23, 2008, 9:47:07 PM (17 years ago)
Author:
John Small
Message:

AVV.C: Fix support for non-EXE's in archiver definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/avv.c

    r1220 r1297  
    2727  24 Aug 08 GKY Fix truncation of cmdline length to 3 characters is now MaxComLineStrg
    2828  24 Aug 08 GKY Warn full drive on save of .BB2 file; prevent loss of existing file
     29  23 Nov 08 JBS Support use of CMD files in archiver definitions
    2930
    3031***********************************************************************/
     
    402403  else {
    403404    ret = (INT) DosQueryAppType(p, &apptype);
    404     if (ret)
    405       *error = -1;
    406     else {
    407       apptype &= (~FAPPTYP_32BIT);
    408       if (!apptype ||
    409           (apptype == FAPPTYP_NOTWINDOWCOMPAT) ||
    410           (apptype == FAPPTYP_WINDOWCOMPAT) ||
    411           (apptype & FAPPTYP_BOUND) ||
    412           (apptype & FAPPTYP_WINDOWAPI) || (apptype & FAPPTYP_DOS)) {
    413         *error = 0;
    414       }
    415       else
    416         *error = 2;
    417     }
     405    apptype &= (~FAPPTYP_32BIT);
     406    if (!apptype ||
     407        (apptype == FAPPTYP_NOTWINDOWCOMPAT) ||
     408        (apptype == FAPPTYP_WINDOWCOMPAT) ||
     409        (apptype & FAPPTYP_BOUND) ||
     410        (apptype & FAPPTYP_WINDOWAPI) || (apptype & FAPPTYP_DOS)) {
     411       *error = 0;
     412     }
     413     else
     414       *error = 2;
    418415  }
    419416  if (pp)
     
    928925        WinSendMsg(hwndHelp,
    929926                   HM_DISPLAY_HELP,
    930                    MPFROM2SHORT(HELP_EDITARC, 0), MPFROMSHORT(HM_RESOURCEID));
     927                   MPFROM2SHORT(HELP_ARCFIELDS, 0), MPFROMSHORT(HM_RESOURCEID));
    931928      break;
    932929
Note: See TracChangeset for help on using the changeset viewer.