/*
* Update the admin region.
*/
- for (i = start + 2; i < start + npages - 1; i++)
+ for (i = start + 2; i < start + npages + 1; i++)
minefield_admin[i] = 0xFFFE; /* used but no region starts here */
minefield_admin[start + 1] = region_start % PAGESIZE;
#endif
MessageBox(NULL, str, "PuTTY Fatal Error",
MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
- exit(1);
+ cleanup_exit(1);
}
#ifdef MALLOC_LOG
if (fp)
#endif
MessageBox(NULL, str, "PuTTY Fatal Error",
MB_SYSTEMMODAL | MB_ICONERROR | MB_OK);
- exit(1);
+ cleanup_exit(1);
}
#ifdef MALLOC_LOG
if (fp)