sane.ds: Check dead stored status (llvm/clang).

This commit is contained in:
Ricardo Filipe 2008-11-19 20:29:53 +00:00 committed by Alexandre Julliard
parent 35078f4b57
commit 66b732e4f8
1 changed files with 8 additions and 1 deletions

View File

@ -100,8 +100,15 @@ TW_UINT16 SANE_ImageInfoGet (pTW_IDENTITY pOrigin,
{
/* return general image description information about the image about to be transferred */
status = psane_get_parameters (activeDS.deviceHandle, &activeDS.sane_param);
activeDS.sane_param_valid = TRUE;
TRACE("Getting parameters\n");
if (status != SANE_STATUS_GOOD)
{
WARN("psane_get_parameters: %s\n", psane_strstatus (status));
psane_cancel (activeDS.deviceHandle);
activeDS.twCC = TWCC_OPERATIONERROR;
return TWRC_FAILURE;
}
activeDS.sane_param_valid = TRUE;
}
pImageInfo->XResolution.Whole = -1;