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); };