[PATCH] odbc32: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Thu Nov 15 13:42:15 CST 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/odbc32/proxyodbc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
index 8aa5eac3e4..eb12329b21 100644
--- a/dlls/odbc32/proxyodbc.c
+++ b/dlls/odbc32/proxyodbc.c
@@ -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;
--
2.14.5
More information about the wine-devel
mailing list