1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

WindowServer: Validate cursor type in SetWindowCursor message handler

Fixes #4536.
This commit is contained in:
Linus Groh 2020-12-25 22:45:47 +01:00 committed by Andreas Kling
parent 82f86e35d6
commit d8899ea65b
3 changed files with 8 additions and 1 deletions

View file

@ -177,8 +177,9 @@ RefPtr<Cursor> Cursor::create(Gfx::StandardCursor standard_cursor)
return WindowManager::the().move_cursor();
case Gfx::StandardCursor::Wait:
return WindowManager::the().wait_cursor();
default:
ASSERT_NOT_REACHED();
}
ASSERT_NOT_REACHED();
}
}