SDL_image: Fixed loading icons and cursors embedded in IO streams

From 7d6409b0173007c3d62e6be336033c2fc8cd1418 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 19 Oct 2025 18:16:34 -0700
Subject: [PATCH] Fixed loading icons and cursors embedded in IO streams

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

diff --git a/src/IMG_bmp.c b/src/IMG_bmp.c
index 3bf4164e..36896faf 100644
--- a/src/IMG_bmp.c
+++ b/src/IMG_bmp.c
@@ -230,7 +230,7 @@ static SDL_Surface *LoadICOCUR_IO(SDL_IOStream * src, int type, bool closeio)
     }
 
     /* Advance to the DIB Data */
-    if (SDL_SeekIO(src, icoOfs, SDL_IO_SEEK_SET) < 0) {
+    if (SDL_SeekIO(src, fp_offset + icoOfs, SDL_IO_SEEK_SET) < 0) {
         goto done;
     }