diff options
Diffstat (limited to 'sim/arm/armos.c')
-rw-r--r-- | sim/arm/armos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c index 7739052..39b9d4f 100644 --- a/sim/arm/armos.c +++ b/sim/arm/armos.c @@ -401,7 +401,7 @@ SWIflen (ARMul_State * state, ARMword fh) struct OSblock *OSptr = (struct OSblock *) state->OSptr; ARMword addr; - if (fh == 0 || fh > FOPEN_MAX) + if (fh > FOPEN_MAX) { OSptr->ErrorNo = EBADF; state->Reg[0] = -1L; |