Changeset 1077 for trunk/dll/makelist.c
- Timestamp:
- Jul 18, 2008, 8:11:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/makelist.c
r1063 r1077 15 15 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 16 16 29 Feb 08 GKY Use xfree where appropriate 17 17 Jul 08 SHL Add SetListOwner for Fortify support 17 18 18 19 ***********************************************************************/ … … 260 261 for (x = 0; list[x]; x++) { 261 262 if (item == list[x]) { 262 263 free(list[x]); 263 264 list[x] = NULL; 264 265 for (y = x;; y++) { … … 272 273 } 273 274 # ifdef FORTIFY 274 275 Fortify_LeaveScope(); 275 276 # endif 276 277 break; … … 301 302 } 302 303 304 #ifdef FORTIFY 305 306 VOID SetListOwner(LISTINFO *li) 307 { 308 if (li) { 309 CHAR **list = li->list; 310 if (list) { 311 UINT x; 312 for (x = 0; list[x]; x++) 313 Fortify_ChangeOwner(list[x]); 314 } 315 Fortify_ChangeOwner(li); 316 } 317 } 318 319 #endif // FORTIFY 320 303 321 #pragma alloc_text(MAKELIST,AddToList,AddToFileList,BuildList,FreeListInfo,FreeList) 304 322 #pragma alloc_text(MAKELIST,SortList,BuildArcList,RemoveFromList,CombineLists) 323 #ifdef FORTIFY 324 #pragma alloc_text(MAKELIST,SetListOwner) 325 #endif // FORTIFY
Note:
See TracChangeset
for help on using the changeset viewer.