Michael Stefaniuc : opengl32: Remove superfluous pointer casts.

Alexandre Julliard julliard at winehq.org
Tue Apr 14 16:00:00 CDT 2009


Module: wine
Branch: master
Commit: d2fdc2d10b77bf1ae09ffaba762e9d1bcf4f7434
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d2fdc2d10b77bf1ae09ffaba762e9d1bcf4f7434

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Apr 14 09:55:39 2009 +0200

opengl32: Remove superfluous pointer casts.

---

 dlls/opengl32/wgl.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index b73cf60..34f7f07 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -102,8 +102,8 @@ typedef struct wine_glcontext {
 
 void enter_gl(void)
 {
-    Wine_GLContext *curctx = (Wine_GLContext *) NtCurrentTeb()->glContext;
-    
+    Wine_GLContext *curctx = NtCurrentTeb()->glContext;
+
     if (curctx && curctx->do_escape)
     {
         enum x11drv_escape_codes escape = X11DRV_SYNC_PIXMAP;
@@ -230,8 +230,8 @@ PROC WINAPI wglGetProcAddress(LPCSTR  lpszProc) {
 
   /* After that, search in the thunks to find the real name of the extension */
   ext.name = lpszProc;
-  ext_ret = (const OpenGL_extension *) bsearch(&ext, extension_registry,
-					 extension_registry_size, sizeof(OpenGL_extension), compar);
+  ext_ret = bsearch(&ext, extension_registry, extension_registry_size,
+                    sizeof(OpenGL_extension), compar);
 
   /* If nothing was found, we are looking for a WGL extension or an unknown GL extension. */
   if (ext_ret == NULL) {




More information about the wine-cvs mailing list