mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-17 22:05:58 -05:00
util: set errno in wl_map_reserve_new()
And also fix wl_connection_demarshal() to pass through that errno. Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
This commit is contained in:
parent
ae263cca3e
commit
03e8a1f84b
2 changed files with 17 additions and 7 deletions
|
|
@ -810,10 +810,12 @@ wl_connection_demarshal(struct wl_connection *connection,
|
|||
}
|
||||
|
||||
if (wl_map_reserve_new(objects, id) < 0) {
|
||||
wl_log("not a valid new object id (%u), "
|
||||
"message %s(%s)\n",
|
||||
id, message->name, message->signature);
|
||||
errno = EINVAL;
|
||||
if (errno == EINVAL) {
|
||||
wl_log("not a valid new object id (%u), "
|
||||
"message %s(%s)\n", id,
|
||||
message->name,
|
||||
message->signature);
|
||||
}
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue