X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8fd3bdc4ee9fe7d3036a36b70affe273008024e2..1709795fee167cc2d2d423df0161e7963376b910:/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)