mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
shm: Compare resource interface when validating visual
This commit is contained in:
parent
b15259bff4
commit
47b446987d
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ shm_create_buffer(struct wl_client *client, struct wl_resource *resource,
|
||||||
struct wl_visual *visual = visual_resource->data;
|
struct wl_visual *visual = visual_resource->data;
|
||||||
void *data;
|
void *data;
|
||||||
|
|
||||||
if (!visual || visual->object.interface != &wl_visual_interface) {
|
if (!visual || visual_resource->object.interface != &wl_visual_interface) {
|
||||||
wl_client_post_error(client, &resource->object,
|
wl_client_post_error(client, &resource->object,
|
||||||
WL_SHM_ERROR_INVALID_VISUAL,
|
WL_SHM_ERROR_INVALID_VISUAL,
|
||||||
"invalid visual");
|
"invalid visual");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue