From f697ef756a28d4e61b33efe36096c0a75df62ec4 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Fri, 23 Aug 2002 11:53:24 +0000 Subject: [PATCH] fixed close dosbox crash. Added GFX_Stop in E_Exit. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@204 --- src/misc/support.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/misc/support.cpp b/src/misc/support.cpp index 0772332f..42959512 100644 --- a/src/misc/support.cpp +++ b/src/misc/support.cpp @@ -26,7 +26,7 @@ #include #include "dosbox.h" #include "support.h" - +#include "video.h" /* Ripped some source from freedos for this one. @@ -230,6 +230,7 @@ void E_Exit(char * format,...) { printf(buf); printf("Press ENTER to stop\n"); fgetc(stdin); - exit(2); + GFX_Stop(); + exit(2); }; \ No newline at end of file