opengl32: Avoid superfluous (void*) cast in LOAD_FUNCPTR macro

Frédéric Delanoy frederic.delanoy at gmail.com
Sat Oct 22 07:59:00 CDT 2011


wine_dlsym already returns void* so no need to cast it again
---
 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 f6cf469..cd60eb2 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -345,7 +345,7 @@ static void *load_libglu(void)
         return NULL;
     }
 
-#define LOAD_FUNCPTR(f) if((p##f = (void*)wine_dlsym(handle, #f, NULL, 0)) == NULL) goto sym_not_found;
+#define LOAD_FUNCPTR(f) if((p##f = wine_dlsym(handle, #f, NULL, 0)) == NULL) goto sym_not_found;
 LOAD_FUNCPTR(gluNewTess)
 LOAD_FUNCPTR(gluDeleteTess)
 LOAD_FUNCPTR(gluTessBeginContour)
-- 
1.7.7




More information about the wine-patches mailing list