mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
video: waylandmouse: handle mmap error properly
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
This commit is contained in:
parent
f8f74bdd97
commit
f8cfa5d0a0
|
|
@ -126,7 +126,7 @@ create_buffer_from_shm(Wayland_CursorData *d,
|
|||
MAP_SHARED,
|
||||
shm_fd,
|
||||
0);
|
||||
if (data == MAP_FAILED) {
|
||||
if (d->shm_data == MAP_FAILED) {
|
||||
d->shm_data = NULL;
|
||||
fprintf (stderr, "mmap () failed\n");
|
||||
close (shm_fd);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user