Changeset 6645 for trunk/src/crtdll/memory.c
- Timestamp:
- Sep 5, 2001, 2:14:25 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/crtdll/memory.c
r4671 r6645 1 /* $Id: memory.c,v 1.3 2001-09-05 12:14:25 bird Exp $ */ 1 2 /* 2 3 * CRTDLL memory functions 3 * 4 * 4 5 * Copyright 1996,1998 Marcus Meissner 5 6 * Copyright 1996 Jukka Iivonen … … 32 33 VOID* result; 33 34 if(!(result = HeapAlloc(GetProcessHeap(),0,size)) && new_handler) 34 35 (*new_handler)(); 35 36 return result; 36 37 } … … 79 80 { 80 81 // return (_heapchk()); 81 82 82 83 if (!HeapValidate( GetProcessHeap(), 0, NULL)) 83 84 { … … 97 98 { 98 99 // return (_heapmin()); 99 100 100 101 if (!HeapCompact( GetProcessHeap(), 0 )) 101 102 { … … 116 117 { 117 118 // return (_heapset(fill)); 118 119 119 120 INT retVal; 120 121 struct _heapinfo heap; … … 144 145 phe.wFlags = next->_useflag == _USEDENTRY ? PROCESS_HEAP_ENTRY_BUSY : 0; 145 146 146 if (phe.lpData && phe.wFlags & PROCESS_HEAP_ENTRY_BUSY && 147 if (phe.lpData && phe.wFlags & PROCESS_HEAP_ENTRY_BUSY && 147 148 !HeapValidate( GetProcessHeap(), 0, phe.lpData )) 148 149 { … … 180 181 { 181 182 // return (_msize(ptr)); 182 183 183 184 LONG size = HeapSize(GetProcessHeap(),0,mem); 184 185 if (size == -1) … … 215 216 /********************************************************************* 216 217 * malloc (CRTDLL.424) 217 * 218 * 218 219 * Alocate memory from the heap. 219 220 */
Note:
See TracChangeset
for help on using the changeset viewer.