Changeset 1032 for trunk/dll/comp.c
- Timestamp:
- Jun 30, 2008, 4:55:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r1029 r1032 203 203 hmq2 = WinCreateMsgQueue(hab2, 0); 204 204 if (hmq2) { 205 # ifdef FORTIFY 206 Fortify_EnterScope(); 207 # endif 205 208 WinCancelShutdown(hmq2, TRUE); 206 209 IncrThreadUsage(); … … 312 315 } 313 316 WinTerminate(hab2); 317 # ifdef FORTIFY 318 xFortify_LeaveScope(pszSrcFile, __LINE__); 319 # endif 314 320 } 315 321 } … … 404 410 hmq = WinCreateMsgQueue(hab, 0); 405 411 if (hmq) { 412 # ifdef FORTIFY 413 Fortify_EnterScope(); 414 # endif 406 415 WinCancelShutdown(hmq, TRUE); 407 416 IncrThreadUsage(); … … 682 691 // PostMsg(cmp->hwnd, WM_COMMAND, MPFROM2SHORT(IDM_DESELECTALL, 0), MPVOID); // 18 Jan 08 SHL we can count now 683 692 DecrThreadUsage(); 693 xfree(cmp, pszSrcFile, __LINE__); 684 694 WinTerminate(hab); 695 # ifdef FORTIFY 696 xFortify_LeaveScope(pszSrcFile, __LINE__); 697 # endif 685 698 } 686 xfree(cmp, pszSrcFile, __LINE__); 699 else 700 xfree(cmp, pszSrcFile, __LINE__); 687 701 } 688 702 … … 708 722 hmq = WinCreateMsgQueue(hab, 0); 709 723 if (hmq) { 724 # ifdef FORTIFY 725 Fortify_EnterScope(); 726 # endif 710 727 WinCancelShutdown(hmq, TRUE); 711 728 IncrThreadUsage(); … … 739 756 } 740 757 DecrThreadUsage(); 758 xfree(cmp, pszSrcFile, __LINE__); 741 759 WinTerminate(hab); 760 # ifdef FORTIFY 761 xFortify_LeaveScope(pszSrcFile, __LINE__); 762 # endif 742 763 } 743 xfree(cmp, pszSrcFile, __LINE__); 764 else 765 xfree(cmp, pszSrcFile, __LINE__); 744 766 } 745 767 … … 1932 1954 } // if on both sides 1933 1955 1934 if (x <= 0) 1956 if (x <= 0) { 1957 # ifdef FORTIFY 1958 xfree(filesl[l++], pszSrcFile, __LINE__); 1959 # else 1935 1960 free(filesl[l++]); // Done with item on left 1936 1937 if (x >= 0) 1938 free(filesr[r++]); // Done with item on right 1939 1961 # endif 1962 } 1963 if (x >= 0) { 1964 # ifdef FORTIFY 1965 xfree(filesr[r++], pszSrcFile, __LINE__); 1966 # else 1967 free(filesr[r++]); // Done with item on right 1968 #endif 1969 } 1940 1970 // Ensure empty buffers point somewhere 1941 1971 if (!pcil->pszFileName) { … … 1956 1986 1957 1987 if (!pcil->pszSubject) 1958 pcil->pszSubject = NullStr;1959 1988 if (!pcir->pszSubject) 1960 1989 pcir->pszSubject = NullStr; … … 1987 2016 } 1988 2017 if (filesl) { 1989 for(; filesl[l]; l++) 1990 free(filesl[l]); 2018 for(; filesl[l]; l++) { 2019 # ifdef FORTIFY 2020 xfree(filesl[l], pszSrcFile, __LINE__); 2021 # else 2022 free(filesl[l]); 2023 # endif 2024 } 1991 2025 } 1992 2026 if (pcir) { … … 1998 2032 } 1999 2033 if (filesr) { 2000 for (; filesr[r]; r++) 2001 free(filesr[r]); 2034 for (; filesr[r]; r++) { 2035 # ifdef FORTIFY 2036 xfree(filesr[r], pszSrcFile, __LINE__); 2037 # else 2038 free(filesr[r]); 2039 # endif 2040 } 2002 2041 } 2003 2042 // Reduce count to match what is in containers … … 2078 2117 2079 2118 # ifdef FORTIFY 2080 // 10 May 08 SHL fixme to suppress W111 2081 Fortify_LeaveScope(); 2119 xFortify_LeaveScope(pszSrcFile, __LINE__); 2082 2120 # endif 2083 2121
Note:
See TracChangeset
for help on using the changeset viewer.