修复set_value返回值
This commit is contained in:
parent
51c732c008
commit
66169e97b3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue