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 {
|
} else {
|
||||||
Wayland_CachedCustomCursor *cached = Wayland_GetCachedCustomCursor(cursor);
|
Wayland_CachedCustomCursor *cached = Wayland_GetCachedCustomCursor(cursor);
|
||||||
|
if (!cached) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
dst_width = cached->dst_width;
|
dst_width = cached->dst_width;
|
||||||
dst_height = cached->dst_height;
|
dst_height = cached->dst_height;
|
||||||
scale = cached->scale;
|
scale = cached->scale;
|
||||||
|
|||||||
Reference in New Issue
Block a user