Changeset 1063
- Timestamp:
- 07/11/08 05:33:36 (7 weeks ago)
- Location:
- trunk/dll
- Files:
-
- 29 modified
-
arccnrs.c (modified) (6 diffs)
-
autoview.c (modified) (6 diffs)
-
collect.c (modified) (15 diffs)
-
comp.c (modified) (10 diffs)
-
datamin.c (modified) (2 diffs)
-
dircnrs.c (modified) (7 diffs)
-
dirsize.c (modified) (6 diffs)
-
droplist.c (modified) (2 diffs)
-
filldir.c (modified) (7 diffs)
-
grep.c (modified) (12 diffs)
-
grep2.c (modified) (3 diffs)
-
inis.c (modified) (4 diffs)
-
init.c (modified) (2 diffs)
-
killproc.c (modified) (6 diffs)
-
mainwnd.c (modified) (3 diffs)
-
makelist.c (modified) (6 diffs)
-
mle.c (modified) (9 diffs)
-
newview.c (modified) (11 diffs)
-
notify.c (modified) (2 diffs)
-
objcnr.c (modified) (4 diffs)
-
objwin.c (modified) (3 diffs)
-
printer.c (modified) (2 diffs)
-
seeall.c (modified) (9 diffs)
-
treecnr.c (modified) (9 diffs)
-
undel.c (modified) (2 diffs)
-
viewer.c (modified) (2 diffs)
-
viewinf.c (modified) (2 diffs)
-
worker.c (modified) (7 diffs)
-
wrappers.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1040 r1063 338 338 pai->pszFileName = NullStr; 339 339 free(psz); 340 # ifdef FORTIFY341 Fortify_LeaveScope();342 # endif343 340 } 344 341 } … … 2008 2005 WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID); 2009 2006 free(dcd); 2010 # ifdef FORTIFY2011 Fortify_LeaveScope();2012 # endif2007 # ifdef FORTIFY 2008 Fortify_LeaveScope(); 2009 # endif 2013 2010 WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL); 2014 2011 } … … 2914 2911 { 2915 2912 LISTINFO *li; 2916 # ifdef FORTIFY2917 Fortify_EnterScope();2918 # endif2913 # ifdef FORTIFY 2914 Fortify_EnterScope(); 2915 # endif 2919 2916 li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 2920 2917 if (li) { … … 2991 2988 else 2992 2989 free(li); 2993 # ifdef FORTIFY2994 Fortify_LeaveScope();2995 # endif2990 # ifdef FORTIFY 2991 Fortify_LeaveScope(); 2992 # endif 2996 2993 } 2997 2994 } … … 3464 3461 idinc = 0; 3465 3462 WinSetWindowUShort(hwndFrame, QWS_ID, id); 3466 # ifdef FORTIFY3467 Fortify_EnterScope();3468 # endif3463 # ifdef FORTIFY 3464 Fortify_EnterScope(); 3465 # endif 3469 3466 dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 3470 3467 if (!dcd) { … … 3551 3548 PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 3552 3549 free(dcd); 3553 # ifdef FORTIFY3554 Fortify_LeaveScope();3555 # endif3550 # ifdef FORTIFY 3551 Fortify_LeaveScope(); 3552 # endif 3556 3553 hwndFrame = (HWND) 0; 3557 3554 } -
trunk/dll/autoview.c
r1039 r1063 614 614 } 615 615 free((CHAR *)mp1); 616 # ifdef FORTIFY617 Fortify_LeaveScope();618 # endif616 # ifdef FORTIFY 617 Fortify_LeaveScope(); 618 # endif 619 619 } 620 620 return 0; … … 638 638 hab2 = WinInitialize(0); 639 639 if (hab2) { 640 # ifdef FORTIFY641 Fortify_EnterScope();642 # endif640 # ifdef FORTIFY 641 Fortify_EnterScope(); 642 # endif 643 643 hmq2 = WinCreateMsgQueue(hab2, 128); 644 644 if (hmq2) { … … 673 673 // else 674 674 WinTerminate(hab2); 675 # ifdef FORTIFY675 # ifdef FORTIFY 676 676 Fortify_LeaveScope(); 677 # endif677 # endif 678 678 } 679 679 } … … 799 799 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID); 800 800 free(ea); 801 # ifdef FORTIFY802 Fortify_LeaveScope();803 # endif801 # ifdef FORTIFY 802 Fortify_LeaveScope(); 803 # endif 804 804 } 805 805 } … … 852 852 if (!PostMsg(hwndAutoObj, UM_LOADFILE, MPFROMP(cf), MPVOID)) 853 853 free(cf); 854 # ifdef FORTIFY855 Fortify_LeaveScope();856 # endif854 # ifdef FORTIFY 855 Fortify_LeaveScope(); 856 # endif 857 857 } 858 858 } … … 911 911 if (!PostMsg(hwndAutoObj, msg, mp1, mp2)) { 912 912 xfree((CHAR *)mp1, pszSrcFile, __LINE__); 913 # ifdef FORTIFY914 Fortify_LeaveScope();915 # endif913 # ifdef FORTIFY 914 Fortify_LeaveScope(); 915 # endif 916 916 } 917 917 return 0; -
trunk/dll/collect.c
r1041 r1063 786 786 } 787 787 xfree(mp1, pszSrcFile, __LINE__); 788 # ifdef FORTIFY789 Fortify_LeaveScope();790 # endif788 # ifdef FORTIFY 789 Fortify_LeaveScope(); 790 # endif 791 791 return 0; 792 792 … … 891 891 if (dcd) { 892 892 WORKER *wk; 893 # ifdef FORTIFY894 Fortify_EnterScope();895 # endif893 # ifdef FORTIFY 894 Fortify_EnterScope(); 895 # endif 896 896 wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 897 897 if (!wk) … … 909 909 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 910 910 free(wk); 911 # ifdef FORTIFY912 Fortify_LeaveScope();913 # endif914 911 FreeListInfo((LISTINFO *) mp1); 912 # ifdef FORTIFY 913 Fortify_LeaveScope(); 914 # endif 915 915 } 916 916 } … … 924 924 if (dcd) { 925 925 WORKER *wk; 926 # ifdef FORTIFY927 Fortify_EnterScope();928 # endif926 # ifdef FORTIFY 927 Fortify_EnterScope(); 928 # endif 929 929 wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 930 930 if (!wk) … … 942 942 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 943 943 free(wk); 944 # ifdef FORTIFY945 Fortify_LeaveScope();946 # endif947 944 FreeListInfo((LISTINFO *) mp1); 945 # ifdef FORTIFY 946 Fortify_LeaveScope(); 947 # endif 948 948 } 949 949 } … … 970 970 FreeList(dcd->lastselection); 971 971 free(dcd); 972 # ifdef FORTIFY973 Fortify_LeaveScope();974 # endif972 # ifdef FORTIFY 973 Fortify_LeaveScope(); 974 # endif 975 975 WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL); 976 976 } … … 1469 1469 if (!dcd) { 1470 1470 free(mp1); 1471 # ifdef FORTIFY1472 Fortify_LeaveScope();1473 # endif1471 # ifdef FORTIFY 1472 Fortify_LeaveScope(); 1473 # endif 1474 1474 Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT); 1475 1475 } … … 1478 1478 Runtime_Error(pszSrcFile, __LINE__, "PostMsg"); 1479 1479 free(mp1); 1480 # ifdef FORTIFY1481 Fortify_LeaveScope();1482 # endif1480 # ifdef FORTIFY 1481 Fortify_LeaveScope(); 1482 # endif 1483 1483 } 1484 1484 } … … 1607 1607 if (!PostMsg(hwnd, UM_COLLECTFROMFILE, MPFROMP(p), MPVOID)) 1608 1608 free(p); 1609 # ifdef FORTIFY1610 Fortify_LeaveScope();1611 # endif1609 # ifdef FORTIFY 1610 Fortify_LeaveScope(); 1611 # endif 1612 1612 } 1613 1613 } … … 1724 1724 { 1725 1725 LISTINFO *li; 1726 # ifdef FORTIFY1727 Fortify_EnterScope();1728 # endif1726 # ifdef FORTIFY 1727 Fortify_EnterScope(); 1728 # endif 1729 1729 li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 1730 1730 if (li) { … … 1775 1775 if (mp2) { 1776 1776 LISTINFO *li; 1777 # ifdef FORTIFY1778 Fortify_EnterScope();1779 # endif1777 # ifdef FORTIFY 1778 Fortify_EnterScope(); 1779 # endif 1780 1780 li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 1781 1781 if (li) { … … 2089 2089 LISTINFO *li; 2090 2090 ULONG action = UM_ACTION; 2091 # ifdef FORTIFY2092 Fortify_EnterScope();2093 # endif2091 # ifdef FORTIFY 2092 Fortify_EnterScope(); 2093 # endif 2094 2094 li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 2095 2095 if (li) { … … 2136 2136 else 2137 2137 free(li); 2138 # ifdef FORTIFY2139 Fortify_LeaveScope();2140 # endif2138 # ifdef FORTIFY 2139 Fortify_LeaveScope(); 2140 # endif 2141 2141 } 2142 2142 } … … 2854 2854 id = COLLECTOR_FRAME + idinc++; 2855 2855 WinSetWindowUShort(hwndFrame, QWS_ID, id); 2856 # ifdef FORTIFY2857 Fortify_EnterScope();2858 # endif2856 # ifdef FORTIFY 2857 Fortify_EnterScope(); 2858 # endif 2859 2859 dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 2860 2860 if (!dcd) { … … 2896 2896 PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 2897 2897 free(dcd); 2898 # ifdef FORTIFY2899 Fortify_LeaveScope();2900 # endif2898 # ifdef FORTIFY 2899 Fortify_LeaveScope(); 2900 # endif 2901 2901 hwndFrame = (HWND) 0; 2902 2902 } -
trunk/dll/comp.c
r1039 r1063 201 201 hab2 = WinInitialize(0); 202 202 if (hab2) { 203 # ifdef FORTIFY204 Fortify_EnterScope();205 # endif203 # ifdef FORTIFY 204 Fortify_EnterScope(); 205 # endif 206 206 hmq2 = WinCreateMsgQueue(hab2, 0); 207 207 if (hmq2) { … … 315 315 } 316 316 WinTerminate(hab2); 317 # ifdef FORTIFY317 # ifdef FORTIFY 318 318 Fortify_LeaveScope(); 319 # endif319 # endif 320 320 } 321 321 } … … 408 408 hab = WinInitialize(0); 409 409 if (hab) { 410 # ifdef FORTIFY411 Fortify_EnterScope();412 # endif410 # ifdef FORTIFY 411 Fortify_EnterScope(); 412 # endif 413 413 hmq = WinCreateMsgQueue(hab, 0); 414 414 if (hmq) { … … 693 693 free(cmp); 694 694 WinTerminate(hab); 695 # ifdef FORTIFY695 # ifdef FORTIFY 696 696 Fortify_LeaveScope(); 697 # endif697 # endif 698 698 } 699 699 else … … 720 720 hab = WinInitialize(0); 721 721 if (hab) { 722 # ifdef FORTIFY723 Fortify_EnterScope();724 # endif722 # ifdef FORTIFY 723 Fortify_EnterScope(); 724 # endif 725 725 hmq = WinCreateMsgQueue(hab, 0); 726 726 if (hmq) { … … 758 758 free(cmp); 759 759 WinTerminate(hab); 760 # ifdef FORTIFY760 # ifdef FORTIFY 761 761 Fortify_LeaveScope(); 762 # endif762 # endif 763 763 } 764 764 else … … 1471 1471 // 10 May 08 SHL fixme to suppress W111 1472 1472 Fortify_EnterScope(); 1473 # endif1473 # endif 1474 1474 1475 1475 if (!cmp) { 1476 1476 Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT); 1477 # ifdef FORTIFY1477 # ifdef FORTIFY 1478 1478 // 10 May 08 SHL fixme to suppress W111 1479 1479 Fortify_LeaveScope(); 1480 # endif1480 # endif 1481 1481 _endthread(); 1482 1482 } … … 2102 2102 # ifdef FORTIFY 2103 2103 Fortify_LeaveScope(); 2104 # endif2104 # endif 2105 2105 2106 2106 // DbgMsg(pszSrcFile, __LINE__, "FillCnrsThread exit"); … … 2651 2651 WinCheckButton(hwnd, COMP_HIDENOTSELECTED, 0); 2652 2652 cmp->filling = TRUE; 2653 # ifdef FORTIFY2654 Fortify_EnterScope();2655 # endif2653 # ifdef FORTIFY 2654 Fortify_EnterScope(); 2655 # endif 2656 2656 forthread = xmalloc(sizeof(COMPARE), pszSrcFile, __LINE__); 2657 2657 if (!forthread) … … 2666 2666 WinDismissDlg(hwnd, 0); 2667 2667 free(forthread); 2668 # ifdef FORTIFY2669 Fortify_LeaveScope();2670 # endif2668 # ifdef FORTIFY 2669 Fortify_LeaveScope(); 2670 # endif 2671 2671 } 2672 2672 else { -
trunk/dll/datamin.c
r1038 r1063 984 984 # ifdef FORTIFY 985 985 Fortify_EnterScope(); 986 # endif986 # endif 987 987 if (G_hevDataMin == NULLHANDLE) { 988 988 // Create just once for any thread that might use it … … 1078 1078 if (hab != NULLHANDLE) 1079 1079 WinTerminate(hab); 1080 # ifdef FORTIFY1080 # ifdef FORTIFY 1081 1081 Fortify_LeaveScope(); 1082 # endif1082 # endif 1083 1083 } // dataminThread 1084 1084 -
trunk/dll/dircnrs.c
r1041 r1063 990 990 991 991 WORKER *wk; 992 # ifdef FORTIFY993 Fortify_EnterScope();994 # endif992 # ifdef FORTIFY 993 Fortify_EnterScope(); 994 # endif 995 995 wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 996 996 if (!wk) … … 1009 1009 free(wk); 1010 1010 FreeListInfo((LISTINFO *) mp1); 1011 # ifdef FORTIFY1012 Fortify_LeaveScope();1013 # endif1011 # ifdef FORTIFY 1012 Fortify_LeaveScope(); 1013 # endif 1014 1014 } 1015 1015 } … … 1025 1025 1026 1026 WORKER *wk; 1027 # ifdef FORTIFY1028 Fortify_EnterScope();1029 # endif1027 # ifdef FORTIFY 1028 Fortify_EnterScope(); 1029 # endif 1030 1030 wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 1031 1031 if (!wk) … … 1044 1044 free(wk); 1045 1045 FreeListInfo((LISTINFO *) mp1); 1046 # ifdef FORTIFY1047 Fortify_LeaveScope();1048 # endif1046 # ifdef FORTIFY 1047 Fortify_LeaveScope(); 1048 # endif 1049 1049 } 1050 1050 } … … 1070 1070 FreeList(dcd->lastselection); 1071 1071 xfree(dcd, pszSrcFile, __LINE__); 1072 # ifdef FORTIFY1073 Fortify_LeaveScope();1074 # endif1072 # ifdef FORTIFY 1073 Fortify_LeaveScope(); 1074 # endif 1075 1075 WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL); 1076 1076 DosPostEventSem(CompactSem); … … 3465 3465 idinc = 0; 3466 3466 WinSetWindowUShort(hwndFrame, QWS_ID, id); 3467 # ifdef FORTIFY3468 Fortify_EnterScope();3469 # endif3467 # ifdef FORTIFY 3468 Fortify_EnterScope(); 3469 # endif 3470 3470 dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 3471 3471 if (!dcd) { … … 3519 3519 PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 3520 3520 free(dcd); 3521 # ifdef FORTIFY3522 Fortify_LeaveScope();3523 # endif3521 # ifdef FORTIFY 3522 Fortify_LeaveScope(); 3523 # endif 3524 3524 hwndFrame = (HWND) 0; 3525 3525 } -
trunk/dll/dirsize.c
r1051 r1063 69 69 typedef struct 70 70 { 71 CHAR szDirName[CCHMAXPATH ];71 CHAR szDirName[CCHMAXPATH + 320]; 72 72 CHAR chStopFlag; 73 73 BOOL dying; … … 309 309 CHAR szAllDir[80]; 310 310 CHAR szBar[80]; 311 CHAR szBuf[CCHMAXPATH * 2];312 313 # ifdef FORTIFY314 Fortify_EnterScope();315 # endif311 CHAR szBuf[CCHMAXPATH + 320]; 312 313 # ifdef FORTIFY 314 Fortify_EnterScope(); 315 # endif 316 316 317 317 // cbFile = currect directory usage in bytes … … 437 437 # ifdef FORTIFY 438 438 Fortify_EnterScope(); 439 # endif439 # endif 440 440 441 441 hwndCnr = dirsize->hwndCnr; … … 467 467 # ifdef FORTIFY 468 468 Fortify_LeaveScope(); 469 # endif469 # endif 470 470 } 471 471 … … 483 483 break; 484 484 } 485 # ifdef FORTIFY486 Fortify_EnterScope();487 # endif485 # ifdef FORTIFY 486 Fortify_EnterScope(); 487 # endif 488 488 pState = xmallocz(sizeof(tState), pszSrcFile, __LINE__); 489 489 if (!pState) { … … 1025 1025 DosSleep(16); //05 Aug 07 GKY 33 1026 1026 xfree(pState, pszSrcFile, __LINE__); // Let's hope no one is still looking 1027 # ifdef FORTIFY1028 Fortify_LeaveScope();1029 # endif1027 # ifdef FORTIFY 1028 Fortify_LeaveScope(); 1029 # endif 1030 1030 } 1031 1031 DosPostEventSem(CompactSem); -
trunk/dll/droplist.c
r1018 r1063 467 467 468 468 if (files && numfiles && files[0] && pcbFile && pulitemID) { 469 # ifdef FORTIFY470 Fortify_EnterScope();471 # endif469 # ifdef FORTIFY 470 Fortify_EnterScope(); 471 # endif 472 472 li = xmallocz(sizeof(LIST
![(please configure the [header_logo] section in trac.ini)](/fm2/chrome/site/your_project_logo.png)