mirror of
https://github.com/reactos/wine.git
synced 2025-02-25 07:22:28 +00:00
sane.ds: Check return value from sane_control_option().
This commit is contained in:
parent
e984d7ba40
commit
05907c3e29
@ -739,6 +739,11 @@ static INT_PTR InitializeDialog(HWND hwnd)
|
|||||||
|
|
||||||
rc = psane_control_option(activeDS.deviceHandle, 0, SANE_ACTION_GET_VALUE,
|
rc = psane_control_option(activeDS.deviceHandle, 0, SANE_ACTION_GET_VALUE,
|
||||||
&optcount, NULL);
|
&optcount, NULL);
|
||||||
|
if (rc != SANE_STATUS_GOOD)
|
||||||
|
{
|
||||||
|
ERR("Unable to read number of options\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
for ( i = 1; i < optcount; i++)
|
for ( i = 1; i < optcount; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user