From 446ee3e7c54614425b8ccb904fe43da8a6d8470c Mon Sep 17 00:00:00 2001 From: poleonek <98408612+poleonek@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:12:17 +0200 Subject: [PATCH] Fix bug with SDL_ShowMessageBox not working with wayland (#10810) --- src/video/wayland/SDL_waylandmessagebox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandmessagebox.c b/src/video/wayland/SDL_waylandmessagebox.c index 7507f3a88..bcc6c426a 100644 --- a/src/video/wayland/SDL_waylandmessagebox.c +++ b/src/video/wayland/SDL_waylandmessagebox.c @@ -83,7 +83,7 @@ static bool get_zenity_version(int *major, int *minor) return SDL_SetError("pipe() failed: %s", strerror(errno)); } - if (run_zenity(argv, fd_pipe) == 0) { + if (run_zenity(argv, fd_pipe)) { FILE *outputfp = NULL; char version_str[ZENITY_VERSION_LEN]; char *version_ptr = NULL, *end_ptr = NULL;