Lei Zhang : sane.ds: Check return value from sane_control_option().
Alexandre Julliard
julliard at winehq.org
Fri Nov 9 07:44:25 CST 2007
Module: wine
Branch: master
Commit: 05907c3e29aed2684bf3879cd28ae2b47e8c29c9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=05907c3e29aed2684bf3879cd28ae2b47e8c29c9
Author: Lei Zhang <thestig at google.com>
Date: Fri Nov 9 01:41:18 2007 -0800
sane.ds: Check return value from sane_control_option().
---
dlls/sane.ds/ui.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/sane.ds/ui.c b/dlls/sane.ds/ui.c
index 6c877a2..0dff3e0 100644
--- a/dlls/sane.ds/ui.c
+++ b/dlls/sane.ds/ui.c
@@ -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++)
{
More information about the wine-cvs
mailing list