mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
wayland: Bail out if a null cached cursor is returned
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user