opengl32: 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:
Michael Stefaniuc 2018-08-08 11:30:10 +02:00 committed by Alexandre Julliard
parent 52201acbea
commit 17294a6b05
1 changed files with 1 additions and 1 deletions

View File

@ -891,7 +891,7 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
{ "glVertexAttribDivisor", "glVertexAttribDivisorARB"}, /* needed by Caffeine */
};
for (i = 0; i < sizeof(alternatives)/sizeof(alternatives[0]); i++)
for (i = 0; i < ARRAY_SIZE(alternatives); i++)
{
if (strcmp( name, alternatives[i].name )) continue;
WARN("Extension %s required for %s not supported, trying %s\n",