Skip to content

Commit

Permalink
Workaround for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Sep 18, 2024
1 parent 49c388a commit 99e6965
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uing.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99e6965

Please sign in to comment.