SDL_image: Return NULL from GetIconSurface on seek failure (fix -Wbool-conversion) (d9c8e)

From d9c8e0fe69fe4c988c91e47478e66007430b97aa Mon Sep 17 00:00:00 2001
From: "arnau.nau" <[EMAIL REDACTED]>
Date: Mon, 2 Mar 2026 00:00:49 +0100
Subject: [PATCH] Return NULL from GetIconSurface on seek failure (fix
 -Wbool-conversion)

(cherry picked from commit c10db647e7864610a65b2b1b80bc7f3cf4e35bae)
---
 src/IMG_bmp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/IMG_bmp.c b/src/IMG_bmp.c
index be6544d67..3eae26440 100644
--- a/src/IMG_bmp.c
+++ b/src/IMG_bmp.c
@@ -534,7 +534,7 @@ static SDL_Surface *GetIconSurface(SDL_IOStream *src, Sint64 offset, int type, i
     Uint32 biSize;
 
     if (SDL_SeekIO(src, offset, SDL_IO_SEEK_SET) < 0) {
-        return false;
+        return NULL;
     }
 
     if (!SDL_ReadU32LE(src, &biSize) ||
@@ -948,4 +948,3 @@ bool IMG_SaveICO(SDL_Surface *surface, const char *file)
 }
 
 #endif // SAVE_BMP
-