From 5752792565d64b4f67876c42398c5ee9c75ffa41 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 18 Jan 2017 22:41:44 +0100 Subject: [PATCH] Utility/X11: Fix calling of std::abort() in case of failure --- src/Nazara/Utility/X11/Display.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Nazara/Utility/X11/Display.cpp b/src/Nazara/Utility/X11/Display.cpp index 63fbb65ac..8a9ff719c 100644 --- a/src/Nazara/Utility/X11/Display.cpp +++ b/src/Nazara/Utility/X11/Display.cpp @@ -107,11 +107,10 @@ namespace Nz sharedConnection = xcb_connect(nullptr, &screen_nbr); // Opening display failed: The best we can do at the moment is to output a meaningful error message - // and cause an abnormal program termination if (!sharedConnection || xcb_connection_has_error(sharedConnection)) { NazaraError("Failed to open xcb connection"); - std::abort(); + return false; } OpenConnection();