mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
committed by
Andreas Kling
parent
559a999852
commit
bee4544192
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user