From 4f7748b8ee3e8fe03c0c560c3b572b6d816feb08 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 25 Aug 2002 19:07:19 +0000 Subject: [PATCH] #pragma pack changed Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@222 --- include/dos_inc.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/dos_inc.h b/include/dos_inc.h index b666e6b3..3008b103 100644 --- a/include/dos_inc.h +++ b/include/dos_inc.h @@ -22,7 +22,7 @@ #include #include -#pragma pack (push,1) +#pragma pack (1) struct CommandTail{ Bit8u count; /* number of bytes returned */ @@ -83,9 +83,7 @@ struct MCB { Bit8u filename[8]; } GCC_ATTRIBUTE(packed); -#pragma pack (pop) - - +#pragma pack () struct DOS_Date { Bit16u year; @@ -208,7 +206,7 @@ INLINE Bit16u long2para(Bit32u size) { INLINE Bit8u RealHandle(Bit16u handle) { PSP * psp=(PSP *)HostMake(dos.psp,0); - if (handle>=psp->max_files) return DOS_FILES; + if (handle>=psp->max_files) return 0xff; return mem_readb(Real2Phys(psp->file_table)+handle); };