diff --git a/libs_win32/app.h b/libs_win32/app.h index b70c659..9140bce 100644 --- a/libs_win32/app.h +++ b/libs_win32/app.h @@ -930,10 +930,10 @@ void app_coordinates_bitmap_to_window( app_t* app, int width, int height, int* x #ifndef APP_FATAL_ERROR #if defined(__cplusplus) #define APP_FATAL_ERROR( ctx, message ) { ::printf( "FATAL ERROR: %s\n", message ); \ - ::MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); ::_flushall(); ::_exit( 0xff ); } + ::MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); ::_flushall(); } #else #define APP_FATAL_ERROR( ctx, message ) { printf( "FATAL ERROR: %s\n", message ); \ - MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); _flushall(); _exit( 0xff ); } + MessageBoxA( 0, message, "Fatal Error!", MB_OK | MB_ICONSTOP ); _flushall(); } #endif #endif diff --git a/linuxdoom-1.10/d_main.c b/linuxdoom-1.10/d_main.c index 17f18af..16c2120 100644 --- a/linuxdoom-1.10/d_main.c +++ b/linuxdoom-1.10/d_main.c @@ -742,7 +742,6 @@ void FindResponseFile (void) if (!handle) { printf ("\nNo such response file!"); - exit(1); } printf("Found response file %s!\n",&myargv[i][1]); fseek (handle,0,SEEK_END); diff --git a/linuxdoom-1.10/i_sound.c b/linuxdoom-1.10/i_sound.c index 6497b5c..d89f508 100644 --- a/linuxdoom-1.10/i_sound.c +++ b/linuxdoom-1.10/i_sound.c @@ -927,7 +927,6 @@ myioctl { fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command); fprintf(stderr, "errno=%d\n", errno); - exit(-1); } } diff --git a/linuxdoom-1.10/i_system.c b/linuxdoom-1.10/i_system.c index 65188ab..74bd820 100644 --- a/linuxdoom-1.10/i_system.c +++ b/linuxdoom-1.10/i_system.c @@ -121,7 +121,6 @@ void I_Quit (void) I_ShutdownMusic(); M_SaveDefaults (); I_ShutdownGraphics(); - exit(0); } @@ -164,7 +163,6 @@ void I_Error (char *error, ...) D_QuitNetGame (); I_ShutdownGraphics(); - exit(-1); } @@ -292,7 +290,6 @@ void I_Quit (void) I_ShutdownMusic(); M_SaveDefaults (); I_ShutdownGraphics(); - exit(0); } void I_WaitVBL(int count) @@ -351,7 +348,6 @@ void I_Error (char *error, ...) D_QuitNetGame (); I_ShutdownGraphics(); - exit(-1); } #endif \ No newline at end of file diff --git a/sndserv/linux.c b/sndserv/linux.c index 93b067d..f886cd8 100644 --- a/sndserv/linux.c +++ b/sndserv/linux.c @@ -60,7 +60,6 @@ myioctl { fprintf(stderr, "ioctl(dsp,%d,arg) failed\n", command); fprintf(stderr, "errno=%d\n", errno); - exit(-1); } } diff --git a/sndserv/soundsrv.c b/sndserv/soundsrv.c index a2fe0b0..81efac1 100644 --- a/sndserv/soundsrv.c +++ b/sndserv/soundsrv.c @@ -136,7 +136,6 @@ int vol_lookup[128*256]; static void derror(char* msg) { fprintf(stderr, "error: %s\n", msg); - exit(-1); } int mix(void) @@ -371,7 +370,6 @@ grabdata else { fprintf(stderr, "Could not find wadfile anywhere\n"); - exit(-1); } @@ -574,7 +572,6 @@ void quit(void) { I_ShutdownMusic(); I_ShutdownSound(); - exit(0); } diff --git a/sndserv/wadread.c b/sndserv/wadread.c index 4fd61a5..edb2862 100644 --- a/sndserv/wadread.c +++ b/sndserv/wadread.c @@ -127,7 +127,6 @@ unsigned short SwapSHORT(unsigned short x) static void derror(char* msg) { fprintf(stderr, "\nwadread error: %s\n", msg); - exit(-1); }