Fixed error path issue when RAW disk operations are active (found by Sergey Oboguev)

This commit is contained in:
Mark Pizzolato 2012-02-01 20:01:46 -08:00
parent c2d50b503e
commit 9b5750f6a8

View file

@ -1924,7 +1924,7 @@ if (err != 0) { /* error? */
if (rq_dte (cp, uptr, ST_DRV)) /* post err log */
rq_rw_end (cp, uptr, EF_LOG, ST_DRV); /* if ok, report err */
perror ("RQ I/O error");
if (!(uptr->flags | UNIT_RAW))
if (!(uptr->flags & UNIT_RAW))
clearerr (uptr->fileref);
return SCPE_IOERR;
}