comparison src/ntheap.c @ 5384:3889ef128488

Fix misspelled words, and some grammar, across the entire source tree. See xemacs-patches message with ID <AANLkTi=edkEKtK3pZ60ytsG5pTJQy2TjAEVCZCLOa-oA@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Thu, 24 Mar 2011 11:00:11 -0600
parents ecf1ebac70d8
children 4dee0387b9de
comparison
equal deleted inserted replaced
5383:294ab9180fad 5384:3889ef128488
243 URawbyte *end = 243 URawbyte *end =
244 base + get_reserved_heap_size () - get_committed_heap_size (); 244 base + get_reserved_heap_size () - get_committed_heap_size ();
245 VirtualQuery (base, &info, sizeof (info)); 245 VirtualQuery (base, &info, sizeof (info));
246 if (info.State != MEM_FREE) 246 if (info.State != MEM_FREE)
247 { 247 {
248 /* Oops, something has already reserved or commited it, nothing 248 /* Oops, something has already reserved or committed it, nothing
249 we can do but exit */ 249 we can do but exit */
250 Extbyte buf[256]; 250 Extbyte buf[256];
251 sprintf (buf, 251 sprintf (buf,
252 "XEmacs cannot start because the memory region required " 252 "XEmacs cannot start because the memory region required "
253 "by the heap is not available.\n" 253 "by the heap is not available.\n"
254 "(BaseAddress = 0x%lx, AllocationBase = 0x%lx, " 254 "(BaseAddress = 0x%lx, AllocationBase = 0x%lx, "
255 "Size = 0x%lx, State = %s, Type = %s)", 255 "Size = 0x%lx, State = %s, Type = %s)",
256 info.BaseAddress, info.AllocationBase, info.RegionSize, 256 info.BaseAddress, info.AllocationBase, info.RegionSize,
257 info.State == MEM_COMMIT ? "COMMITED" : "RESERVED", 257 info.State == MEM_COMMIT ? "COMMITTED" : "RESERVED",
258 info.Type == MEM_IMAGE ? "IMAGE" : 258 info.Type == MEM_IMAGE ? "IMAGE" :
259 info.Type == MEM_MAPPED ? "MAPPED" : "PRIVATE"); 259 info.Type == MEM_MAPPED ? "MAPPED" : "PRIVATE");
260 MessageBoxA (NULL, buf, "XEmacs", MB_OK | MB_ICONSTOP); 260 MessageBoxA (NULL, buf, "XEmacs", MB_OK | MB_ICONSTOP);
261 exit(1); 261 exit(1);
262 } 262 }