Commit 52201acb authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

odbccp32: Use the ARRAY_SIZE() macro.

parent 3e610753
...@@ -71,7 +71,7 @@ static const WCHAR odbc_error_invalid_keyword[] = {'I','n','v','a','l','i','d',' ...@@ -71,7 +71,7 @@ static const WCHAR odbc_error_invalid_keyword[] = {'I','n','v','a','l','i','d','
/* Push an error onto the error stack, taking care of ranges etc. */ /* Push an error onto the error stack, taking care of ranges etc. */
static void push_error(int code, LPCWSTR msg) static void push_error(int code, LPCWSTR msg)
{ {
if (num_errors < sizeof error_code/sizeof error_code[0]) if (num_errors < ARRAY_SIZE(error_code))
{ {
error_code[num_errors] = code; error_code[num_errors] = code;
error_msg[num_errors] = msg; error_msg[num_errors] = msg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment