opengl32: Fix stray ';
' after if-clause that makes the rest of the funtion unreachable.
(Found by Smatch)
Michael Stefaniuc
mstefani at redhat.de
Thu Dec 28 12:44:55 CST 2006
The patch is obviously correct but it introduces a warning which was
masked before:
dlls/opengl32/wgl.c: In function ‘wglGetProcAddress’:
dlls/opengl32/wgl.c:289: warning: control reaches end of non-void
function
bye
michael
---
dlls/opengl32/wgl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index e398a4d..ab6d4ef 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 */
--
1.4.4.2
--
Michael Stefaniuc Tel.: +49-711-96437-199
Sr. Network Engineer Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani at redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061228/b4a4069e/attachment.pgp
More information about the wine-patches
mailing list