Marcus Meissner : winex11.drv: Small fixes.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 19 07:02:07 CST 2007
Module: wine
Branch: master
Commit: f4d7b4444ce432956439fb11ac8676536d3777e6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f4d7b4444ce432956439fb11ac8676536d3777e6
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Feb 18 11:56:49 2007 +0100
winex11.drv: Small fixes.
---
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 dbbd972..fdb92ae 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -825,8 +825,9 @@ BOOL get_fbconfig_from_visualid(Display *display, Visual *visual, int *fmt_id, i
int tmp_vis_id;
VisualID visualid;
- if(!display || !display) {
+ if(!display || !visual) {
ERR("Invalid display or visual\n");
+ return FALSE;
}
visualid = XVisualIDFromVisual(visual);
@@ -835,7 +836,7 @@ BOOL get_fbconfig_from_visualid(Display *display, Visual *visual, int *fmt_id, i
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 */
More information about the wine-cvs
mailing list