From daf54354568cb03f7f216e674a5932bc79bac12b Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 17 Dec 2002 09:06:17 +0000 Subject: [PATCH] No longer E_exit on illegal headers, just a warning,. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@578 --- src/dos/dos_execute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dos/dos_execute.cpp b/src/dos/dos_execute.cpp index 56414bd7..65621482 100644 --- a/src/dos/dos_execute.cpp +++ b/src/dos/dos_execute.cpp @@ -271,12 +271,12 @@ bool DOS_Execute(char * name,PhysPt block_pt,Bit8u flags) { pos=headersize;DOS_SeekFile(fhandle,&pos,DOS_SEEK_SET); while (imagesize>0x7FFF) { readsize=0x8000;DOS_ReadFile(fhandle,loadaddress,&readsize); - if (readsize!=0x8000) E_Exit("Illegal header"); + if (readsize!=0x8000) LOG_WARN("Illegal header"); loadaddress+=0x8000;imagesize-=0x8000; } if (imagesize>0) { readsize=(Bit16u)imagesize;DOS_ReadFile(fhandle,loadaddress,&readsize); - if (readsize!=imagesize) E_Exit("Illegal header"); + if (readsize!=imagesize) LOG_WARN("Illegal header"); } /* Relocate the exe image */ Bit16u relocate;