From: Bernd Herd codeberg@herdsoft.com
Native transfer mode on windows can only work with 8 bit per color component as biBitCount values of 48 for 16 bit per color component are no valid values for a DIB --- dlls/sane.ds/ds_image.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/sane.ds/ds_image.c b/dlls/sane.ds/ds_image.c index 37327bc5db6..4b4e77dbcad 100644 --- a/dlls/sane.ds/ds_image.c +++ b/dlls/sane.ds/ds_image.c @@ -386,6 +386,14 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, } break; case FMT_RGB: + if (activeDS.frame_params.depth != 8) + { + FIXME("For NATIVE, we support only 8 bit per color channel, not %d\n", activeDS.frame_params.depth); + SANE_Cancel(); + activeDS.twCC = TWCC_OPERATIONERROR; + activeDS.currentState = 6; + return TWRC_FAILURE; + } break; case FMT_OTHER: FIXME("For NATIVE, we support only GRAY and RGB\n");