fixed close dosbox crash. Added GFX_Stop in E_Exit.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@204
This commit is contained in:
		
							parent
							
								
									86f7adfed5
								
							
						
					
					
						commit
						f697ef756a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@
 | 
			
		|||
#include <string.h>
 | 
			
		||||
#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);
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue