修复set_value返回值

This commit is contained in:
gb 2023-05-16 15:38:54 +08:00
parent 51c732c008
commit 66169e97b3
1 changed files with 1 additions and 1 deletions

View File

@ -2851,7 +2851,7 @@ COM_API_IMPLEMENT(scanner, int, set_value(int sn, void* val))
{ {
int ret = hg_sane_middleware::instance()->set_option(handle_, (void*)sn, SANE_ACTION_SET_VALUE, val, NULL); int ret = hg_sane_middleware::instance()->set_option(handle_, (void*)sn, SANE_ACTION_SET_VALUE, val, NULL);
return ret == SANE_STATUS_GOOD; return ret;
} }
sn = transfer_id(sn); sn = transfer_id(sn);