From 99e69658ce5c21f3dacb0c53a7bc0e9f14d62b8c Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Wed, 18 Sep 2024 11:21:57 +0900 Subject: [PATCH] Workaround for Windows --- src/uing.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uing.cr b/src/uing.cr index cafe886..600780b 100644 --- a/src/uing.cr +++ b/src/uing.cr @@ -37,6 +37,10 @@ module UIng def self.init : Nil str_ptr = LibUI.init(@@init_options) return if str_ptr.null? + {% if flag?(:windows) %} + # FIXME: This is a workaround + return if String.new(str_ptr).includes?("code 0") + {% end %} err = String.new(str_ptr) LibUI.free_init_error(str_ptr) raise err