mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
WSEventLoop: Treat invalid window types the same as unknown window types
And forcefully disconnect the client in both cases.
This commit is contained in:
parent
559a999852
commit
bee4544192
1 changed files with 1 additions and 4 deletions
|
@ -212,10 +212,7 @@ bool WSEventLoop::on_receive_from_client(int client_id, const WSAPI_ClientMessag
|
|||
ws_window_type = WSWindowType::Menubar;
|
||||
break;
|
||||
case WSAPI_WindowType::Invalid:
|
||||
break; // handled below
|
||||
}
|
||||
|
||||
if (ws_window_type == WSWindowType::Invalid) {
|
||||
default:
|
||||
dbgprintf("Unknown WSAPI_WindowType: %d\n", message.window.type);
|
||||
client.did_misbehave();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue