Having set extended error like Tom is a little smaller.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1311 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2007-05-15 04:22:30 +00:00
parent f777f91f4c
commit 81da8db94d

View File

@ -1229,13 +1229,12 @@ dispatch:
/* Set Extended Error */
case 0x0a:
{
#define er (* MK_PTR (lregs, lr.DS, lr.DX))
CritErrCode = er.AX;
CritErrDev = MK_FP(er.ES, er.DI);
CritErrLocus = er.CH;
CritErrClass = er.BH;
CritErrAction = er.BL;
#undef er
lregs far *er = FP_DS_DX;
CritErrCode = er->AX;
CritErrDev = MK_FP(er->ES, er->DI);
CritErrLocus = er->CH;
CritErrClass = er->BH;
CritErrAction = er->BL;
CLEAR_CARRY_FLAG();
break;
}