SDL: wayland: Fix return value check from int-to-bool conversion

From 7ee2ab383082822e348453f57c99ae01cc57dc51 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Thu, 16 Jan 2025 11:52:16 -0500
Subject: [PATCH] wayland: Fix return value check from int-to-bool conversion

---
 src/video/wayland/SDL_waylandwindow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index 056a8bd50e82f..326f341218b40 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -2844,7 +2844,7 @@ bool Wayland_SetWindowIcon(SDL_VideoDevice *_this, SDL_Window *window, SDL_Surfa
 
     // TODO: Add high-DPI icon support
     Wayland_ReleaseSHMBuffer(&wind->icon);
-    if (Wayland_AllocSHMBuffer(icon->w, icon->h, &wind->icon) != 0) {
+    if (!Wayland_AllocSHMBuffer(icon->w, icon->h, &wind->icon)) {
         return SDL_SetError("wayland: failed to allocate SHM buffer for the icon");
     }