Fix bug with SDL_ShowMessageBox not working with wayland (#10810)

This commit is contained in:
poleonek 2024-09-13 00:12:17 +02:00 committed by GitHub
parent b7dc30ca24
commit 446ee3e7c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ static bool get_zenity_version(int *major, int *minor)
return SDL_SetError("pipe() failed: %s", strerror(errno)); return SDL_SetError("pipe() failed: %s", strerror(errno));
} }
if (run_zenity(argv, fd_pipe) == 0) { if (run_zenity(argv, fd_pipe)) {
FILE *outputfp = NULL; FILE *outputfp = NULL;
char version_str[ZENITY_VERSION_LEN]; char version_str[ZENITY_VERSION_LEN];
char *version_ptr = NULL, *end_ptr = NULL; char *version_ptr = NULL, *end_ptr = NULL;