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