Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

  1. /***
  2. *hpabort.c - Abort process due to fatal heap error
  3. *
  4. * Copyright (c) 1988-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *
  8. *Revision History:
  9. * 11-13-89 JCR Module created
  10. * 12-18-89 GJF #include-ed heap.h, also added explicit _cdecl to
  11. * function definition.
  12. * 03-11-90 GJF Replaced _cdecl with _CALLTYPE1 and added #include
  13. * <cruntime.h>.
  14. * 10-03-90 GJF New-style function declarator.
  15. * 10-11-90 GJF Changed interface to _amsg_exit().
  16. * 04-06-93 SKS Replace _CRTAPI* with __cdecl
  17. * 04-24-96 GJF Deleted include of obsolete heap.h
  18. *
  19. *******************************************************************************/
  20. #include <cruntime.h>
  21. #include <internal.h>
  22. #include <rterr.h>
  23. /***
  24. * _heap_abort() - Abort process due to fatal heap error
  25. *
  26. *Purpose:
  27. * Terminate the process and output a heap error message
  28. *
  29. *Entry:
  30. * Void
  31. *
  32. *Exit:
  33. * Never returns
  34. *
  35. *Exceptions:
  36. *
  37. *******************************************************************************/
  38. void __cdecl _heap_abort (
  39. void
  40. )
  41. {
  42. _amsg_exit(_RT_HEAP); /* heap error */
  43. /*** PROCESS TERMINATED ***/
  44. }