Fix status sane_read.

merge-requests/463/merge
Thierry HUCHARD 2020-05-13 20:33:01 +02:00
rodzic 3eb72d7485
commit 29866b0b19
1 zmienionych plików z 1 dodań i 8 usunięć

Wyświetl plik

@ -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);
}