[PATCH] small fixes

Marcus Meissner marcus at jet.franken.de
Sun Feb 18 04:56:49 CST 2007


Hi,

This function needed a bit of cleanup.

Ciao, Marcus
---
 dlls/winex11.drv/opengl.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index f36468d..9073ceb 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -828,8 +828,9 @@ BOOL get_fbconfig_from_visualid(Display
     int tmp_vis_id;
     VisualID visualid;
 
-    if(!display || !display) {
+    if(!display || !visual) {
         ERR("Invalid display or visual\n");
+	return FALSE;
     }
     visualid = XVisualIDFromVisual(visual);
 
@@ -838,7 +839,7 @@ BOOL get_fbconfig_from_visualid(Display
     if (NULL == cfgs || 0 == nCfgs) {
         ERR("glXChooseFBConfig returns NULL\n");
         if(cfgs != NULL) XFree(cfgs);
-            return 0;
+        return FALSE;
     }
 
     /* Find the requested offscreen format and count the number of offscreen formats */
-- 
1.4.3.4



More information about the wine-patches mailing list