From bef91cd5809069c9d3d59a0f29e788c81e0fded4 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Thu, 28 Dec 2006 23:46:25 +0100 Subject: [PATCH] opengl32: Fix wglGetProcAddress typo. --- dlls/opengl32/wgl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index e398a4de0b4..32e7c125b5b 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -223,7 +223,7 @@ PROC WINAPI wglGetProcAddress(LPCSTR lpszProc) { TRACE("(%s)\n", lpszProc); - if(lpszProc == NULL); + if(lpszProc == NULL) return NULL; /* First, look if it's not already defined in the 'standard' OpenGL functions */ @@ -245,6 +245,7 @@ PROC WINAPI wglGetProcAddress(LPCSTR lpszProc) { /* We are dealing with an unknown GL extension. */ WARN("Extension '%s' not defined in opengl32.dll's function table!\n", lpszProc); + return NULL; } else { /* We are looking for an OpenGL extension */ /* Check if the GL extension required by the function is available */ -- 2.11.4.GIT