Changeset 1671
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r1664 r1671 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 201 1Steven H. Levine9 Copyright (c) 2003, 2012 Steven H. Levine 10 10 11 11 15 Oct 02 MK Baseline … … 81 81 04 Aug 12 GKY Changes to use Unlock to unlock files if Unlock.exe is in path both from menu and as part of copy, move and 82 82 delete operations 83 05 Sep 12 SHL Correct UM_COLLECTFROMFILE bad list file reporting 83 84 84 85 ***********************************************************************/ … … 845 846 846 847 if (dcd && mp1) { 848 // mp1 is pszFileName, mp2 is unused 847 849 FILESTATUS4L fs4; 848 850 PCNRITEM pci; … … 851 853 FILE *fp; 852 854 ULONG errs = 0; 853 BOOL first = FALSE;855 BOOL first = TRUE; // 2012-09-05 SHL 854 856 size_t c; 855 857 CHAR *moder = "r"; … … 871 873 c = strlen(fullname); 872 874 if (c + 1 >= sizeof(fullname)) 873 errs++; 875 errs++; // Name too long 874 876 else if (!c || (fullname[c - 1] != '\n' && fullname[c - 1] != '\r')) 875 errs++; 877 errs++; // Probably reading a binary file 876 878 else { 877 879 bstripcr(fullname); 878 880 879 881 if (*fullname == '\"') { 882 // Strip quotes 880 883 memmove(fullname, fullname + 1, strlen(fullname) + 1); 881 884 lstrip(fullname); … … 886 889 } 887 890 else { 891 // Strip trailing spaces 888 892 p = strchr(fullname, ' '); 889 893 if (p) … … 898 902 FALSE, 899 903 TRUE)) { 904 // Already in container 900 905 pci = UpdateCnrRecord(dcd->hwndCnr, fullname, FALSE, dcd); 901 906 if (Filter((PMINIRECORDCORE) pci, (PVOID) & dcd->mask)) { … … 911 916 &fs4, 912 917 sizeof(fs4))) { 913 // collect it918 // Add to collector containter 914 919 pci = WinSendMsg(dcd->hwndCnr, 915 920 CM_ALLOCRECORD, … … 932 937 } 933 938 else 934 errs++; 939 errs++; // Something wrong with filename or file 935 940 } 936 941 if (errs > (first ? 0 : 50)) { … … 942 947 943 948 if (ret == MBID_NO) 944 break; 949 break; // Give up 945 950 if (!first) 946 951 errs = 0; … … 948 953 first = FALSE; 949 954 } 950 } // while not eof955 } // while not eof 951 956 fclose(fp); 952 } 957 } // if file opened 953 958 free(mp1); 954 959 } -
trunk/dll/fm3res.rc
r1666 r1671 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 20 09Steven H. Levine9 Copyright (c) 2003, 2012 Steven H. Levine 10 10 11 11 08 Feb 03 SHL Enable SYS_FRAME … … 61 61 04 Aug 12 GKY Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of 62 62 copy, move and delete operations 63 05 Sep 12 SHL Sync collector menu with docs 63 64 64 65 ***********************************************************************/ … … 1564 1565 } 1565 1566 MENUITEM "", -1, MIS_SEPARATOR 1566 MENUITEM "Collect list infile(s)",IDM_COLLECTFROMFILE1567 MENUITEM "Collect from list file(s)",IDM_COLLECTFROMFILE 1567 1568 MENUITEM "Archive...\tCtrl + A", IDM_ARCHIVE 1568 1569 MENUITEM "Extract...\tCtrl + x", IDM_EXTRACT
Note:
See TracChangeset
for help on using the changeset viewer.
