Signed-off-by: Michael Stefaniuc mstefani@winehq.org --- dlls/opengl32/wgl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index b73920cb25..04ace8effe 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -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",