wayland: Bail out if a null cached cursor is returned

This commit is contained in:
Frank Praznik committed 2024-08-06 11:17:13 -04:00
1 parent 10abe1a75b
commit 0e37bc7c3f
1 file changed
+3
+3
View File
@@ -718,6 +718,9 @@ static int Wayland_ShowCursor(SDL_Cursor *cursor)
}
} else {
Wayland_CachedCustomCursor *cached = Wayland_GetCachedCustomCursor(cursor);
if (!cached) {
return -1;
}
dst_width = cached->dst_width;
dst_height = cached->dst_height;
scale = cached->scale;