Commit 05907c3e authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

sane.ds: Check return value from sane_control_option().

parent e984d7ba
......@@ -739,6 +739,11 @@ static INT_PTR InitializeDialog(HWND hwnd)
rc = psane_control_option(activeDS.deviceHandle, 0, SANE_ACTION_GET_VALUE,
&optcount, NULL);
if (rc != SANE_STATUS_GOOD)
{
ERR("Unable to read number of options\n");
return FALSE;
}
for ( i = 1; i < optcount; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment