Changeset 1314 for trunk/dll/arccnrs.c


Ignore:
Timestamp:
Dec 3, 2008, 7:26:07 PM (17 years ago)
Author:
Gregg Young
Message:

Subdirectory from the arcname for the extract path only created if an extract menu option is selected. (Ticket 22)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1311 r1314  
    6767                for the extract path to arc container.
    6868  02 Dec 08 JBS Ticket 284: Changed string indicating no Start/End of list strings.
     69  03 Dec 08 GKY Subdirectory from the arcname for the extract path only created if an "extract"
     70                menu option is selected.
    6971
    7072***********************************************************************/
     
    18191821              UINT numfiles = 0, numalloc = 0;
    18201822
     1823              if (li->targetpath && fFileNameCnrPath &&
     1824                  stricmp(lastextractpath, li->targetpath)) {
     1825                strcpy(lastextractpath, li->targetpath);
     1826                SetDir(dcd->hwndParent, hwnd, li->targetpath, 1);
     1827              }
    18211828              for (x = 0; li->list[x]; x++) {
    18221829                BldFullPathName(fullname, li->targetpath, li->list[x]);
     
    30103017      case IDM_ARCEXTRACTEXIT:
    30113018      case IDM_ARCEXTRACT:
     3019        if (dcd->directory && fFileNameCnrPath &&
     3020            stricmp(lastextractpath, dcd->directory)) {
     3021          strcpy(lastextractpath, dcd->directory);
     3022          SetDir(dcd->hwndParent, hwnd, dcd->directory, 1);
     3023        }
    30123024        if (dcd->info->extract)
    30133025          runemf2(SEPARATE | WINDOWED | ASYNCHRONOUS |
     
    30223034      case IDM_ARCEXTRACTWDIRSEXIT:
    30233035      case IDM_ARCEXTRACTWDIRS:
     3036        if (dcd->directory && fFileNameCnrPath &&
     3037            stricmp(lastextractpath, dcd->directory)) {
     3038          strcpy(lastextractpath, dcd->directory);
     3039          SetDir(dcd->hwndParent, hwnd, dcd->directory, 1);
     3040        }
    30243041        if (dcd->info->exwdirs)
    30253042          runemf2(SEPARATE | WINDOWED | ASYNCHRONOUS |
     
    38753892          }
    38763893        }
    3877         if (IsFile(dcd->directory) == -1)
    3878           SetDir(dcd->hwndFrame, dcd->hwndCnr, dcd->directory, 1);
    38793894      }
    38803895#     ifdef FORTIFY
Note: See TracChangeset for help on using the changeset viewer.