mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 09:55:06 +00:00
WindowServer: Post error if trying to destroy non-existent menubar.
This commit is contained in:
parent
5d30c6b00c
commit
e5df2a5d5b
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();
|
int menubar_id = request.menubar_id();
|
||||||
auto it = m_menubars.find(menubar_id);
|
auto it = m_menubars.find(menubar_id);
|
||||||
if (it == m_menubars.end()) {
|
if (it == m_menubars.end()) {
|
||||||
ASSERT_NOT_REACHED();
|
post_error("Bad menubar ID");
|
||||||
// FIXME: Send an error.
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto& menubar = *(*it).value;
|
auto& menubar = *(*it).value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue