summaryrefslogtreecommitdiff
path: root/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-14 10:31:39 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-14 10:31:39 +0100
commite5df2a5d5b1cada2f03f58e72e23d8c40bdcb085 (patch)
treef6bd1326751cbc89f1515b8c8053e878ba3c36eb /WindowServer
parent5d30c6b00cf29fe9ac1f42fef8f2205a227973c3 (diff)
downloadserenity-e5df2a5d5b1cada2f03f58e72e23d8c40bdcb085.zip
WindowServer: Post error if trying to destroy non-existent menubar.
Diffstat (limited to 'WindowServer')
-rw-r--r--WindowServer/WSClientConnection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/WindowServer/WSClientConnection.cpp b/WindowServer/WSClientConnection.cpp
index a2412fd384..166ae62554 100644
--- a/WindowServer/WSClientConnection.cpp
+++ b/WindowServer/WSClientConnection.cpp
@@ -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;