mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-25 20:33:35 +00:00
handle the return value of write() (#810)
Co-authored-by: Tony Kuker <akuker@gmail.com>
This commit is contained in:
parent
aeb6576996
commit
c6da145f0f
@ -257,9 +257,9 @@ bool SCSIPrinter::WriteBytes(BYTE *buf, uint32_t length)
|
||||
|
||||
LOGTRACE("Appending %d byte(s) to printer output file", length);
|
||||
|
||||
write(fd, buf, length);
|
||||
uint32_t num_written = write(fd, buf, length);
|
||||
|
||||
return true;
|
||||
return (num_written == length);
|
||||
}
|
||||
|
||||
bool SCSIPrinter::CheckReservation(SCSIDEV *controller)
|
||||
|
Loading…
Reference in New Issue
Block a user