[Wine-patches] [eterhack] winex11: Prevent crash under NX (eterbug #8458).
Alexander Morozov
amorozov на etersoft.ru
Чт Май 17 20:10:40 MSK 2012
---
dlls/winex11.drv/xrender.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index c1661f8..71ce1e9 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -391,6 +391,12 @@ const struct gdi_dc_funcs *X11DRV_XRender_Init(void)
#undef LOAD_OPTIONAL_FUNCPTR
#undef LOAD_FUNCPTR
+ if (pXRenderCreateLinearGradient && getenv("NXSESSIONID"))
+ {
+ WARN("detected NX, disable using XRenderCreateLinearGradient\n");
+ pXRenderCreateLinearGradient = NULL;
+ }
+
wine_tsx11_lock();
ok = pXRenderQueryExtension(gdi_display, &event_base, &xrender_error_base);
wine_tsx11_unlock();
--
1.7.9.7
Подробная информация о списке рассылки Wine-patches