Commit f4d7b444 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winex11.drv: Small fixes.

parent c9d78fc5
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment