Module: wine Branch: master Commit: bef91cd5809069c9d3d59a0f29e788c81e0fded4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bef91cd5809069c9d3d59a0f29...
Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Thu Dec 28 23:46:25 2006 +0100
opengl32: Fix wglGetProcAddress typo.
---
dlls/opengl32/wgl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index e398a4d..32e7c12 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -223,7 +223,7 @@ PROC WINAPI wglGetProcAddress(LPCSTR lp
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 lp
/* 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 */