Changeset 907 for trunk/dll/filldir.c
- Timestamp:
- Jan 6, 2008, 8:26:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/filldir.c
r859 r907 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 200 7Steven H. Levine9 Copyright (c) 2001, 2008 Steven H. Levine 10 10 11 11 10 Jan 04 SHL ProcessDirectory: avoid most large drive failures … … 43 43 ***********************************************************************/ 44 44 45 #include <stdlib.h> 46 #include <string.h> 47 #include <ctype.h> 48 49 #if 0 // fixme to disable or to be configurable 50 #include <malloc.h> // _heapchk 51 #endif 52 45 53 #define INCL_DOS 46 54 #define INCL_WIN 47 55 #define INCL_DOSERRORS 48 56 #define INCL_LONGLONG 49 #include <os2.h> 50 51 #include <stdarg.h> 52 #include <stdio.h> 53 #include <stdlib.h> 54 #include <string.h> 55 #include <ctype.h> 56 #include <time.h> 57 #include <time.h> 58 59 #if 0 // fixme to disable or to be configurable 60 #include <malloc.h> // _heapchk 61 #endif 62 57 58 #include "fm3str.h" 59 #include "filldir.h" 60 #include "errutil.h" // Dos_Error... 61 #include "strutil.h" // GetPString 63 62 #include "fm3dll.h" 64 #include "fm3str.h"65 63 66 64 static PSZ pszSrcFile = __FILE__; … … 486 484 487 485 ULONGLONG FillInRecordFromFSA(HWND hwndCnr, PCNRITEM pci, 488 489 490 486 const PSZ pszFileName, 487 const PFILESTATUS4L pfsa4, 488 const BOOL partial, DIRCNRDATA * dcd) // Optional 491 489 { 492 490 HPOINTER hptr; … … 792 790 * network file systems exhibit such a problem). 793 791 */ 794 #if 0 // 13 Aug 07 SHL fixme to be gone795 {796 static ULONG ulMaxCnt = 1;797 if (ulFindCnt > ulMaxCnt) {798 ulMaxCnt = ulFindCnt;799 DbgMsg(pszSrcFile, __LINE__, "ulMaxCnt %u/%u", ulMaxCnt, ulFindMax);800 }801 }802 #endif // fixme to be gone803 792 804 793 if (stopflag && *stopflag) … … 838 827 } 839 828 else { 829 // 04 Jan 08 SHL fixme like comp.c to handle less than ulSelCnt records 840 830 pci = pciFirst; 841 831 ullTotalBytes = 0; … … 937 927 } 938 928 else { 929 // 04 Jan 08 SHL fixme like comp.c to handle less than ulSelCnt records 939 930 pci = pciFirst; 940 931 ullTotalBytes = 0; … … 1105 1096 if (!pciFirst) { 1106 1097 Win_Error2(hwndCnr, HWND_DESKTOP, pszSrcFile, __LINE__, IDS_CMALLOCRECERRTEXT); 1098 // 04 Jan 08 SHL fixme not just up and die 1107 1099 exit(0); 1108 1100 } 1109 1101 1102 // 04 Jan 08 SHL fixme like comp.c to handle less than ulSelCnt records 1110 1103 pci = pciFirst; 1111 1104 for (x = 0; x < 26; x++) { … … 1680 1673 while (pci) { 1681 1674 // 12 Sep 07 SHL dwg drivebar crash testing - ticket# ??? 1682 1683 1684 1675 static PCNRITEM pciLast; // 12 Sep 07 SHL 1676 ULONG ulSize = sizeof(*pci); 1677 ULONG ulAttr; 1685 1678 APIRET apiret = DosQueryMem((PVOID)pci, &ulSize, &ulAttr); 1686 1679 if (apiret) 1687 1680 Dos_Error(MB_ENTER, apiret, HWND_DESKTOP, pszSrcFile, __LINE__, 1688 1681 "DosQueryMem failed pci %p pciLast %p", pci, pciLast); 1689 1682 FreeCnrItemData(pci);
Note:
See TracChangeset
for help on using the changeset viewer.