mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 11:17:19 +00:00
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;
|
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;
|
if (attrList[i] == fDescType) return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue