odbc32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b0bcfabf2d
commit
138374b667
|
@ -2038,7 +2038,7 @@ static BOOL SQLColAttributes_KnownStringAttribute(SQLUSMALLINT fDescType)
|
|||
};
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < sizeof(attrList) / sizeof(SQLUSMALLINT); i++) {
|
||||
for (i = 0; i < ARRAY_SIZE(attrList); i++) {
|
||||
if (attrList[i] == fDescType) return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue