mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
sane.ds: Use ARRAY_SIZE instead of open coding it.
This commit is contained in:
parent
1a8ef0c4db
commit
f79d4343a9
|
@ -186,7 +186,7 @@ static TW_UINT16 TWAIN_GetSupportedCaps(pTW_CAPABILITY pCapability)
|
|||
ICAP_XFERMECH, ICAP_PIXELTYPE, ICAP_UNITS, ICAP_BITDEPTH, ICAP_COMPRESSION, ICAP_PIXELFLAVOR,
|
||||
ICAP_XRESOLUTION, ICAP_YRESOLUTION, ICAP_PHYSICALHEIGHT, ICAP_PHYSICALWIDTH, ICAP_SUPPORTEDSIZES };
|
||||
|
||||
return msg_get_array(pCapability, TWTY_UINT16, supported_caps, sizeof(supported_caps) / sizeof(supported_caps[0]));
|
||||
return msg_get_array(pCapability, TWTY_UINT16, supported_caps, ARRAY_SIZE(supported_caps));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue