comparison src/ntheap.c @ 367:a4f53d9b3154 r21-1-13

Import from CVS: tag r21-1-13
author cvs
date Mon, 13 Aug 2007 11:01:07 +0200
parents 30d2cfa1092a
children cc15677e0335
comparison
equal deleted inserted replaced
366:83d76f480a59 367:a4f53d9b3154
274 mapping first has loaded DLLs into the VA space of our heap.) */ 274 mapping first has loaded DLLs into the VA space of our heap.) */
275 275
276 /* Query the region at the end of the committed heap */ 276 /* Query the region at the end of the committed heap */
277 void *tmp; 277 void *tmp;
278 MEMORY_BASIC_INFORMATION info; 278 MEMORY_BASIC_INFORMATION info;
279 SIZE_T size; 279 DWORD size;
280 unsigned char* base = get_heap_end (); 280 unsigned char* base = get_heap_end ();
281 unsigned char* end = base + get_reserved_heap_size () - get_committed_heap_size (); 281 unsigned char* end = base + get_reserved_heap_size () - get_committed_heap_size ();
282 VirtualQuery (base, &info, sizeof info); 282 VirtualQuery (base, &info, sizeof info);
283 if (info.State != MEM_FREE) 283 if (info.State != MEM_FREE)
284 { 284 {