diff --git a/bld/trap/par/c/parqnx.c b/bld/trap/par/c/parqnx.c index f9d17f6c46..9296760e3a 100644 --- a/bld/trap/par/c/parqnx.c +++ b/bld/trap/par/c/parqnx.c @@ -36,11 +36,9 @@ #include #include "trperr.h" #include "parlink.h" +#include "realmod.h" -#define INFO_SEG 0x40 -#define PAR_BASE 0x08 - #define PRIV_MASK 3 #define IOPL_SHIFT 12 @@ -60,7 +58,7 @@ int NumPrinters( void ) unsigned short __far *par; int i; - par = _MK_FP( INFO_SEG, PAR_BASE ); + par = _MK_FP( BDATA_SEG, BDATA_PRINTER_BASE ); for( i = 3; i > 0; --i ) { if( par[i - 1] != 0 ) { return( i ); @@ -74,7 +72,7 @@ unsigned PrnAddress( int printer ) { unsigned short __far *par; - par = _MK_FP( INFO_SEG, PAR_BASE ); + par = _MK_FP( BDATA_SEG, BDATA_PRINTER_BASE ); return( par[printer] ); }