mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
WindowServer: Post error if trying to destroy non-existent menubar.
This commit is contained in:
parent
5d30c6b00c
commit
e5df2a5d5b
Notes:
sideshowbarker
2024-07-19 15:45:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e5df2a5d5b1
1 changed files with 1 additions and 2 deletions
|
@ -103,8 +103,7 @@ void WSClientConnection::handle_request(WSAPIDestroyMenubarRequest& request)
|
|||
int menubar_id = request.menubar_id();
|
||||
auto it = m_menubars.find(menubar_id);
|
||||
if (it == m_menubars.end()) {
|
||||
ASSERT_NOT_REACHED();
|
||||
// FIXME: Send an error.
|
||||
post_error("Bad menubar ID");
|
||||
return;
|
||||
}
|
||||
auto& menubar = *(*it).value;
|
||||
|
|
Loading…
Reference in a new issue