X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/7983f47ed4d055fd67c42ea5d9a1ddb8801d3ad9..887035a593c8c0a1af853657c80046e17dc5581a:/misc.c diff --git a/misc.c b/misc.c index f91e8a71..2d0a4634 100644 --- a/misc.c +++ b/misc.c @@ -1,6 +1,6 @@ -#include #include #include +#include #include #include "putty.h" @@ -472,9 +472,7 @@ void *safemalloc(size_t size) #else strcpy(str, "Out of memory!"); #endif - MessageBox(NULL, str, "PuTTY Fatal Error", - MB_SYSTEMMODAL | MB_ICONERROR | MB_OK); - cleanup_exit(1); + modalfatalbox(str); } #ifdef MALLOC_LOG if (fp) @@ -509,9 +507,7 @@ void *saferealloc(void *ptr, size_t size) #else strcpy(str, "Out of memory!"); #endif - MessageBox(NULL, str, "PuTTY Fatal Error", - MB_SYSTEMMODAL | MB_ICONERROR | MB_OK); - cleanup_exit(1); + modalfatalbox(str); } #ifdef MALLOC_LOG if (fp)