kopia lustrzana https://gitlab.com/sane-project/backends
Fix status sane_read.
rodzic
3eb72d7485
commit
29866b0b19
|
@ -1143,7 +1143,6 @@ sane_read(SANE_Handle h, SANE_Byte *buf, SANE_Int maxlen, SANE_Int *len)
|
|||
}
|
||||
}
|
||||
else {
|
||||
SANE_Status status = SANE_STATUS_EOF;
|
||||
SANE_Status job = SANE_STATUS_UNSUPPORTED;
|
||||
*len = 0;
|
||||
free(handler->scanner->img_data);
|
||||
|
@ -1168,14 +1167,8 @@ sane_read(SANE_Handle h, SANE_Byte *buf, SANE_Int maxlen, SANE_Int *len)
|
|||
}
|
||||
handler->scanner->work = next_page;
|
||||
handler->ps.last_frame = !next_page;
|
||||
if (handler->ps.last_frame == SANE_TRUE)
|
||||
status = SANE_STATUS_NO_DOCS;
|
||||
else
|
||||
status = SANE_STATUS_EOF;
|
||||
}
|
||||
else
|
||||
status = SANE_STATUS_EOF;
|
||||
return status;
|
||||
return SANE_STATUS_EOF;
|
||||
}
|
||||
return (SANE_STATUS_GOOD);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue