Michael Stefaniuc : odbc32: Use the ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Thu Nov 15 16:43:27 CST 2018
Module: wine
Branch: master
Commit: 138374b6677b8c73219a91d61feb2303cf73ab82
URL: https://source.winehq.org/git/wine.git/?a=commit;h=138374b6677b8c73219a91d61feb2303cf73ab82
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Thu Nov 15 20:42:15 2018 +0100
odbc32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard 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 8aa5eac..eb12329 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;
More information about the wine-cvs
mailing list